How to Zero In on Thrown Exceptions in Visual Studio

By Peter Bromberg

Often when debugging a complex solution it can be helpful to have the debugger break at the exact point where an exception is thrown, rather than catching it somewhere up the stack. It's easy to set this up with the Visual studio Debugging / Exceptions window from the top menu:

Check the Box under Common Language Runtime Exceptions in the "Thrown" column.You may be surprised what happens.

How to Zero In on Thrown Exceptions in Visual Studio  (837 Views)