Difference between Debugger.Launch and Debugger.Break

Nissim picture Nissim · Sep 21, 2010 · Viewed 12.9k times · Source

What's the difference between

Debugger.Launch();
Debugger.Break();

?

Answer

Marc Gravell picture Marc Gravell · Sep 21, 2010

Reading the documentation, it sounds like Launch does nothing if the debugger is attached - it doesn't actually break (although I haven't verified this).

Break asks to launch the debugger (if not attached), and does do the break.

In reality, it is unlikely you'd have more than one Launch point... if that.