[英]How can I change “Break When an Exception is Thrown” debugger behaviour from code
I want in some part of code enable Break When an Exception is Thrown debugger behaviour from code, and after some part of code restore initial value. 我想在代码的某些部分中启用“异常发生时抛出异常” ,以便代码中的调试器行为,并在代码的某些部分后恢复初始值。 Is it possible?
可能吗?
maybe you can try do this 也许你可以尝试这样做
try
{
// ... <- your code here
}
catch (Exception e)
{
System.Diagnostics.Debugger.Break();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.