c# force debug mode programmatically
See the question and my original answer on StackOverflowDebugger.Launch will launch a debugger or will do nothing is one is already attached. I believe It's not a breakpoint. Debugger.Break() will actually break.
Calling Debugger.Launch() may do different things depending on the machine, for example if Visual Studio is installed or not, etc.
See also a related tech article: How to: Launch the Debugger Automatically