How to Create Breakpoint programmically

Waqas Anwar
29 August 2012
6033 Views

If you are debugging your code and want to set breakpoint programmatically you can use Debugger class Break method as follows:

System.Diagnostics.Debugger.Break();