次の方法で共有


Debugger.AllBreakpointsLastHit プロパティ

最後に同時にヒットした、バインドされているブレークポイントのコレクションを取得します。

名前空間:  EnvDTE
アセンブリ:  EnvDTE (EnvDTE.dll 内)

構文

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

プロパティ値

型 : EnvDTE.Breakpoints
Breakpoints コレクション。

解説

AllBreakpointsLastHit は、デバッガーが同時にヒットした、複数のバインドされているブレークポイントを含む Breakpoints コレクションを返します。 バインドされたブレークポイントの詳細については、dbgBreakpointType 列挙型に関するトピックを参照してください。 ブレークポイントを 1 つだけ取得するには、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