Home > Mobile >  Is there an easier way to stop at a breakpoint only when an error happens?
Is there an easier way to stop at a breakpoint only when an error happens?

Time:11-28

Is there an easier way to do this? Example

CodePudding user response:

try
{
     // Your code here.
}
catch (Exception e)
{
     #if DEBUG         
     System.Diagnostics.Debugger.Break();
     #endif
}

CodePudding user response:

You set breakpoint in enter image description here

  • Related