0

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)?

Hyunjik Bae
  • 2,721
  • 2
  • 22
  • 32
  • Maybe you can get some help from [this issue](https://stackoverflow.com/questions/30853341/in-a-visual-studio-extension-how-to-detect-when-the-debugger-continues). – LoLance Jun 20 '19 at 10:18
  • You can monitor commands execution like this: https://stackoverflow.com/questions/33865333/how-do-i-know-from-my-vsix-that-a-build-will-be-followed-by-a-debug-session – Sergey Vlasov Jun 21 '19 at 03:56

0 Answers0