Ayohaych
Ayohaych

Reputation: 5189

Detect when Stop Debugging button is pressed in Visual studio

I want to reset a variable when the stop debugging button is pressed so I'm just wondering, how would I go about detecting when it's pressed Thanks

Upvotes: 0

Views: 531

Answers (1)

Neil
Neil

Reputation: 11929

If you are writing an extension for VS, you can use IVsDebuggerEvents.OnModeChange which will tell you when the debugger has started/stopped/edit & continue.

http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivsdebuggerevents.onmodechange.aspx

Upvotes: 1

Related Questions