Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Continues running this process from a stopped state. Any previous execution state (such as a step) is cleared and the process starts executing again.

Note Note

This method should be used instead of IDebugProgram2::Execute.

int Execute(
   IDebugThread2 pThread


[in] An IDebugThread2 object representing the thread to execute.

If successful, returns S_OK; otherwise, returns error code.

When the user starts execution from a stopped state in some other process's thread, this method is called on this process. This method is also called when the user selects the Start command from the Debug menu in the IDE. The implementation of this method may be as simple as calling the IDebugThread2::Resume method on the current thread in the process.

Caution note Caution

Do not send a stopping event or an immediate (synchronous) event to IDebugEventCallback2::Event while handling this call; otherwise the debugger may hang.

Community Additions

© 2015 Microsoft