[英]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.