How can I prevent the debugger from entering my method when throwing an exception, instead display the exception on the method call site?
For example, if one code throws an exception from mscorlib, the debugger (obviously) does not accept them in non-user code to show the source of the exception, it only shows the exception on the call site.
In other words, this is the default behavior:

and this is my desired behavior:

I tried adding the [DebuggerNonUserCode] and [DebuggerStepThrough] attributes to my Fail() method, but no luck.
source share