Debugger3.Go Method (Boolean)

Starts executing the program from the current statement.

Namespace:  EnvDTE90
Assembly:  EnvDTE90 (in EnvDTE90.dll)

Syntax

'Declaration
Sub Go ( _
    WaitForBreakOrEnd As Boolean _
)
void Go(
    bool WaitForBreakOrEnd
)
void Go(
    [InAttribute] bool WaitForBreakOrEnd
)
abstract Go : 
        WaitForBreakOrEnd:bool -> unit 
function Go(
    WaitForBreakOrEnd : boolean
)

Parameters

  • WaitForBreakOrEnd
    Type: System.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

Debugger2.Go(Boolean)

Remarks

Go starts executing the program from the current statement. For more information, see How to: Start Execution.

Examples

The following example shows how to use the Go method.

To test this method:

  1. Set several breakpoints in the target application.

  2. Run the add-in.

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

.NET Framework Security

See Also

Reference

Debugger3 Interface

Go Overload

EnvDTE90 Namespace