Condividi tramite


Proprietà Debugger2.AllBreakpointsLastHit

Ottiene una raccolta di punti di interruzione associati raggiunti per ultimi contemporaneamente.

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

Sintassi

'Dichiarazione
ReadOnly Property AllBreakpointsLastHit As Breakpoints
Breakpoints AllBreakpointsLastHit { get; }
property Breakpoints^ AllBreakpointsLastHit {
    Breakpoints^ get ();
}
abstract AllBreakpointsLastHit : Breakpoints with get
function get AllBreakpointsLastHit () : Breakpoints

Valore proprietà

Tipo: Breakpoints
Raccolta Breakpoints.

Note

La proprietà AllBreakpointsLastHit ottiene una raccolta Breakpoints contenente più punti di interruzione associati raggiunti contemporaneamente dal debugger. Per ulteriori informazioni sui punti di interruzione associati, vedere dbgBreakpointType. Per recuperare solo un punto di interruzione, utilizzare la proprietà BreakpointLastHit.

Esempi

Sub ListBreakpointsLastHit()
    ' This function dumps the names of all 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")

    Dim hitbps As Breakpoints
    hitbps = DTE2.Debugger.AllBreakpointsLastHit

    If (hitbps.Count > 0) Then
        Dim bp As Breakpoint
        For Each bp In hitbps
            bppane.OutputString(bp.Name + vbCrLf)
        Next
    Else
        bppane.OutputString("No breakpoints were hit")
    End If
End Sub

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Debugger2 Interfaccia

Spazio dei nomi EnvDTE80