共用方式為


Debugger3.AllBreakpointsLastHit 屬性

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

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

語法

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

屬性值

類型:Breakpoints
Breakpoints 集合。

備註

AllBreakpointsLastHit 可取得 Breakpoints 集合,此集合包含偵錯工具同時叫用的多個繫結中斷點。 如需繫結中斷點的詳細資訊,請參閱 dbgBreakpointType。 若只要擷取一個中斷點,請使用 BreakpointLastHit 屬性。

範例

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 EnvDTE90.Breakpoints3
    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 安全性

請參閱

參考

Debugger3 介面

EnvDTE90 命名空間