I am trying to write an extension function that will run to the next call and then print out information about the next instruction.
I am using IDebugControl::Execute
to run tc
. As noted in the documentation, this call returns before the tracing has actually occurred. Sleeping or calling DispatchCallbacks does not see the tc
trace occur before my extension returns.
How can I allow the trace to happen without returning from the call?
If I add my own DebugEventCallback then I can get notified of the triggered DebuggeeState and EngineState changes, but can't reach back into the engine from those callbacks.