Debugger3::AllBreakpointsLastHit Property
Visual Studio 2015
Gets a collection of bound breakpoints that were last simultaneously hit.
Assembly: EnvDTE90 (in EnvDTE90.dll)
Implements
Debugger2::AllBreakpointsLastHitAllBreakpointsLastHit gets a Breakpoints collection that contains multiple, bound breakpoints that the debugger hits simultaneously. See dbgBreakpointType for more information about bound breakpoints. To retrieve only one breakpoint, use the BreakpointLastHit property.
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
Show: