Share via


Debugger2.StepOut Method

Steps out of the current function.

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

Syntax

'Declaration
Sub StepOut ( _
    WaitForBreakOrEnd As Boolean _
)
void StepOut(
    bool WaitForBreakOrEnd
)
void StepOut(
    [InAttribute] bool WaitForBreakOrEnd
)
abstract StepOut : 
        WaitForBreakOrEnd:bool -> unit 
function StepOut(
    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.

Implements

Debugger.StepOut(Boolean)

Remarks

See Code Stepping Overview for more information.

Examples

The following example demonstrates how to use the StepOut method.

To test this method:

  1. Set a breakpoint inside the method in the target application.

  2. Run the target application in the debug mode.

  3. When the application stops at the breakpoint, run the add-in.

public static void StepOut(EnvDTE80.DTE2 dte)
{
    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;
    debugger.StepOut(true);
}
Sub StepOutAndNotify
    DTE2.Debugger.StepOut(True)
    MsgBox("The debugger stepped out of the function.")
End Sub

.NET Framework Security

See Also

Reference

Debugger2 Interface

EnvDTE80 Namespace