Udostępnij za pośrednictwem


Debugger2.AllBreakpointsLastHit Property

Gets a collection of bound breakpoints that were last simultaneously hit.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
ReadOnly Property AllBreakpointsLastHit As Breakpoints
'Usage
Dim instance As Debugger2 
Dim value As Breakpoints 

value = instance.AllBreakpointsLastHit
Breakpoints AllBreakpointsLastHit { get; }
property Breakpoints^ AllBreakpointsLastHit {
    Breakpoints^ get ();
}
function get AllBreakpointsLastHit () : Breakpoints

Property Value

Type: EnvDTE.Breakpoints
A Breakpoints collection.

Implements

Debugger.AllBreakpointsLastHit

Remarks

AllBreakpointsLastHit gets a Breakpoints collection that contains multiple, bound breakpoints that the debugger hits simultaneously. See dbgBreakpointType for more information on bound breakpoints. To retrieve only one breakpoint, use the BreakpointLastHit property.

Examples

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

.NET Framework Security

See Also

Reference

Debugger2 Interface

Debugger2 Members

AllBreakpointsLastHit Overload

EnvDTE80 Namespace