Debugger.Go Method
Starts executing the program from the current statement.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.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.BooleanSet 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.
Remarks
Go starts executing the program from the current statement. See <PAVEOVER>How to: Start Execution for more information.
Examples
The following example demonstrates how to use the Go method.
To test this method:
Set several breakpoints in the target application.
Run the add-in.
public static void Go(DTE dte)
{
dte.Debugger.Go(true);
}
Shared Sub Go(ByRef dte As EnvDTE.DTE)
dte.Debugger.Go(True)
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.