Proprietà Debugger.AllBreakpointsLastHit

Ottiene un insieme di punti di interruzione associati raggiunti per ultimi contemporaneamente.

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

Sintassi

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

Valore proprietà

Tipo: EnvDTE.Breakpoints
Insieme di Breakpoints.

Note

La proprietà AllBreakpointsLastHit restituisce un insieme Breakpoints, che contiene più punti di interruzione associati raggiunti simultaneamente dal debugger. Per ulteriori informazioni sui punti di interruzione associati, vedere l'enumerazione dbgBreakpointType. Per il recupero di un solo punto di interruzione, utilizzare la proprietà BreakpointLastHit.

Esempi

Nell'esempio riportato di seguito viene illustrato come utilizzare la proprietà AllBreakpointsLastHit.

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 = DTE.Windows.Item(Constants.vsWindowKindOutput).Object

    Dim bppane As OutputWindowPane
    bppane = ow.OutputWindowPanes.Add("Debugger")

    Dim hitbps As Breakpoints
    hitbps = DTE.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

Debugger Interfaccia

Spazio dei nomi EnvDTE

BreakpointLastHit

Breakpoints

Breakpoint