Handling Stop Debugging button and Detach All button in Visual Studio Extension

182 Views Asked by At

DebuggerEvents.OnEnterDesignMode is useful when Visual Studio stops debugging. OnEnterDesignMode gives dbgEventReasonEndProgram when a user presses Stop Debugging button.

However, OnEnterDesignMode also gives dbgEventReasonEndProgram (not dbgEventReasonDetachProgram) when a user presses Detach All button.

How can I distinguish Stop Debugging from Detach All command in my Visual Studio Extension (.vsix)?

0

There are 0 best solutions below