Partager via


Debugger.AllBreakpointsLastHit, propriété

Obtient une collection des derniers points d'arrêt liés ayant fait l'objet d'un accès simultané.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

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

Valeur de propriété

Type : EnvDTE.Breakpoints
Collection Breakpoints.

Notes

AllBreakpointsLastHit retourne une collection Breakpoints qui contient plusieurs points d'arrêt limités que le débogueur a atteints simultanément. Consultez l'énumération dbgBreakpointType pour plus d'informations sur les points d'arrêt liés. Pour récupérer un seul point d'arrêt, utilisez la propriété BreakpointLastHit.

Exemples

L'exemple suivant montre comment utiliser la propriété 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

Sécurité .NET Framework

Voir aussi

Référence

Debugger Interface

EnvDTE, espace de noms

BreakpointLastHit

Breakpoints

Breakpoint