Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在按下停止调试按钮时重置一个变量,所以我只是想知道,我将如何检测何时按下它谢谢
如果您正在为 VS 编写扩展,您可以使用 IVsDebuggerEvents.OnModeChange 它将告诉您调试器何时启动/停止/编辑和继续。
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivsdebuggerevents.onmodechange.aspx