Debugger3::Stop Method (Boolean)
Visual Studio 2015
Stops debugging and terminates or detaches from all attached processes.
Assembly: EnvDTE90 (in EnvDTE90.dll)
Parameters
- WaitForDesignMode
-
Type:
System::Boolean
Set to true if the debugging session should stop only when it reaches Design mode. Set to false if you intend to stop debugging. However, you have to perform other tasks in the macro before the debugger enters design mode.
Implements
Debugger2::Stop(Boolean)For more information, see .03c68f95-aa96-481b-990e-467e065453a5
The following example shows how to use the Stop method.
Note |
|---|
Macros are run on the main thread of Visual Studio. The following code does not work and the macro loops indefinitely because the IDE never has an opportunity to enter design mode. Instead, use a separate thread or pooling mechanism. |
' Bad Code Example. Sub StopDebuggingAndWaitForDesign DTE2.Debugger.Stop(False) While DTE2.Debugger.CurrentMode <> dbgDebugMode.dbgDesignMode System.Threading.Thread.Sleep(50) End While MsgBox("Debugger has been stopped") End Sub
Show:
