Debugger.AllBreakpointsLastHit 屬性

取得最後一次同時叫用的繫結中斷點集合。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

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

屬性值

型別:EnvDTE.Breakpoints
Breakpoints 集合。

備註

AllBreakpointsLastHit 會傳回 Breakpoints 集合,該集合包含偵錯工具同時叫用的多重繫結中斷點。 如需關於繫結中斷點的詳細資訊,請參閱 dbgBreakpointType 列舉型別。 若只要擷取一個中斷點,請使用 BreakpointLastHit 屬性。

範例

下列範例示範如何使用 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

.NET Framework 安全性

請參閱

參考

Debugger 介面

EnvDTE 命名空間

BreakpointLastHit

Breakpoints

Breakpoint