Debugger.Break breaks linqpad
Options
Hi
When i call Debugger.Break in the start of a query, linqpad stops working and closes. If i call Debugger.Launch() instead, it will ask me which instance of VS to use on debug.
When i call Debugger.Break in the start of a query, linqpad stops working and closes. If i call Debugger.Launch() instead, it will ask me which instance of VS to use on debug.
Comments
-
You just have to check if a debugger is attached:
if(Debugger.IsAttached) Debugger.Break();
That's standard behavior for Debugger.Launch(). -
Ok thanks, didn't know about that