Debugger2.BreakpointLastHit Propriedade

Definição

Obtém a última visita de ponto de interrupção.

public:
 property EnvDTE::Breakpoint ^ BreakpointLastHit { EnvDTE::Breakpoint ^ get(); };
public:
 property EnvDTE::Breakpoint ^ BreakpointLastHit { EnvDTE::Breakpoint ^ get(); };
[System.Runtime.InteropServices.DispId(110)]
public EnvDTE.Breakpoint BreakpointLastHit { [System.Runtime.InteropServices.DispId(110)] get; }
[<System.Runtime.InteropServices.DispId(110)>]
[<get: System.Runtime.InteropServices.DispId(110)>]
member this.BreakpointLastHit : EnvDTE.Breakpoint
Public ReadOnly Property BreakpointLastHit As Breakpoint

Valor da propriedade

Breakpoint

Um objeto Breakpoint.

Implementações

Atributos

Exemplos

O exemplo a seguir demonstra como usar a BreakpointLastHit propriedade.

public static void BreakpointLastHit(EnvDTE80.DTE2 dte)  
{  
    // Setup debug Output window.  
    Window w =   
    (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);  
    w.Visible = true;  
    OutputWindow ow = (OutputWindow)w.Object;  
    OutputWindowPane owp = ow.OutputWindowPanes.Add("Breakpoint Last   
    Hit Test");  
    owp.Activate();  

    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;  
    owp.OutputString("Breakpoint last hit: " +  
                     debugger.BreakpointLastHit.Name);  
}  
Sub BreakpointLastHit()  
    ' This function dumps the name of the breakpoints last hit to  
    ' a new pane in the Output window.  
    Dim ow As OutputWindow  
    ow = DTE2.Windows.Item(Constants.vsWindowKindOutput).Object  

    Dim bppane As OutputWindowPane  
    bppane = ow.OutputWindowPanes.Add("Debugger")  
    bppane.OutputString(DTE2.Debugger.BreakpointLastHit.Name + vbCrLf)  
End Sub  

Comentários

BreakpointLastHit Obtém um limite Breakpoint que foi o último ponto de interrupção atingido pelo depurador. Se o depurador atingir vários pontos de interrupção simultaneamente, essa propriedade retornará um dos pontos de interrupção; Ele não define qual ponto de interrupção é retornado. Para ver uma coleção de vários pontos de interrupção atingidos simultaneamente, consulte AllBreakpointsLastHit .

Aplica-se a