Udostępnij za pośrednictwem


Debugger3.StepOut(Boolean) Method

Definition

Steps out of the current function.

void StepOut(bool WaitForBreakOrEnd = true);
[System.Runtime.InteropServices.DispId(5)]
public void StepOut (bool WaitForBreakOrEnd = true);
[<System.Runtime.InteropServices.DispId(5)>]
abstract member StepOut : bool -> unit
Public Sub StepOut (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.

Implements

Attributes

Examples

The following example shows how to use the StepOut method.

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

Remarks

For more information, see Code Stepping Overview.

Applies to