![](/img/trans.png)
[英]How can I change “Break When an Exception is Thrown” debugger behaviour from code
[英]How can I prevent the debugger from entering my method when Exception is thrown?
您需要使用DebuggerHiddenAttribute修饰您的方法:
[DebuggerHidden]
public static void Fail() {
throw new Exception("Fail");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.