Condividi tramite


Metodo Debugger2.StepOut (Boolean)

Esce dalla funzione corrente.

Spazio dei nomi:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Sintassi

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

Parametri

  • WaitForBreakOrEnd
    Tipo: System.Boolean
    Impostare su true se questa chiamata di funzione attende fino a inserire modalità di interruzione o la modalità progettazione prima di restituire.Impostare su false se si desidera che questa chiamata per restituire immediatamente dopo il determinare il debugger per avviare l'esecuzione.Da restituire il debugger potrebbe essere in progettazione, nell'interruzione, o in modalità di esecuzione.

Note

vedere Cenni preliminari sull'esecuzione di codice per ulteriori informazioni.

Esempi

Nell'esempio seguente viene illustrato come utilizzare StepOut metodo.

Per testare questo metodo:

  1. Impostare un punto di interruzione nel metodo nell'applicazione di destinazione.

  2. Eseguire l'applicazione di destinazione in modalità di debug.

  3. Quando l'applicazione si interrompe al punto di interruzione, eseguire il componente aggiuntivo.

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Debugger2 Interfaccia

Overload StepOut

Spazio dei nomi EnvDTE80