In Visual Studio Extension, how to detect when the debugger continues

I need my Visual Studio extension to respond to debugging events. I registered IDebugEventCallback2and I receive events, but all that I receive for each event is opaque IDebugEvent2and Guid, many of which are not only undocumented, but are not visible anywhere on the Internet (or in my registry).

My specific requirement at the moment is to know when the process continues, i.e. the user clicked the "Continue", "Run on cursor" buttons, etc. Which Guid should I look for?

Or is there some other family of events I should subscribe to?

(In a more general sense, is there some way that I don’t have enough to learn about the events that were passed to my callback IDebugEventCallback2::Eventwhen many of them do not appear on MSDN or elsewhere? Thanks!)

+4
source share
2 answers

. , , , Visual Studio - () . IDebugEventCallback2 , , .

Visual Studio , , , .

EnvDTE.DebuggerEvents.OnXxx , , - . , OnEnterBreakMode , , . EnvDTE.Debugger .

, Visual Studio, . , EnvDTE.DebuggerEvents (, ​​ ), , IDebugEventCallback2.Event. , , , , GUID IDebugEventCallback2.Event.

+2

, , IDebugXxx . - , , , , QueryInterface() , . IDebugEngineCreateEvent2, IDebugProcessCreateEvent2, IDebugProcessDestroyEvent2 .. , VSSDK\VisualStudioIntegration\Common\Inc\msdbg.h IID.

, , . AD7Events.cs . , , , , , VS.

, " debug" . , , . , IDebugProgram3:: Continue().

, IVsDebugger.AdviseDebuggerEvents(). , , . , IVsDebuggerEvents, OnModeChanged() DBGMODE. , , - .

+2

All Articles