Debugger3.Go(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts executing the program from the current statement.
void Go(bool WaitForBreakOrEnd = true);
[System.Runtime.InteropServices.DispId(6)]
public void Go (bool WaitForBreakOrEnd = true);
[<System.Runtime.InteropServices.DispId(6)>]
abstract member Go : bool -> unit
Public Sub Go (Optional WaitForBreakOrEnd As Boolean = true)
Parameters
- WaitForBreakOrEnd
- Boolean
Set to true
if this function call should wait until either Break mode or Design mode is entered before returning. Set to false
if you want this call to return immediately after causing the debugger to begin execution. Upon return, the debugger could be in Design, Break, or Run modes. See Execution Control for more information.
Implements
- Attributes
Examples
The following example shows how to use the Go method.
public static void Go(EnvDTE80.DTE2 dte)
{
EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
debugger.Go(true);
}
Sub FakeRestart()
DTE2.Debugger.Stop(True)
DTE2.Debugger.Breakpoints.Add("Form1")
DTE2.Debugger.Go(True)
End Sub
Remarks
Go starts executing the program from the current statement. For more information, see How to: Start Execution.