Debugger::LastBreakReason Property
Visual Studio 2015
Gets the last reason that a program was broken. If the program is running it returns DBG_REASON_NONE.
Assembly: EnvDTE (in EnvDTE.dll)
LastBreakReason returns a dbgEventReason value indicating why a program broke. A program can be broken for one of the following reasons:
A breakpoint was hit.
Returns a dbgEventReasonBreakpoint.
An exception was thrown.
Returns a dbgEventReasonExceptionThrown.
An exception was thrown but not handled by the program being debugged.
Returns a dbgEventReasonExceptionNotHandled.
If nothing is being debugged or the debugger is in run mode, this property returns dbgEventReasonNone.
Show: