Regardless of other options that may achieve the same result (i.e. adding breakpoints
by hand), is it possible to programmatically add a breakpoint into the source code of a
You can just call System.Diagnostics.Debugger.Break().
You can also tell Visual Studio to break on all exceptions, even handled ones, by going on the menu to Debug->Exceptions... and checking Thrown everywhere that's currently only checked "User-unhandled".