Share via


IDebugProgram2::Execute

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Note

This method is deprecated. Use the Execute method instead.

Syntax

HRESULT Execute(
   void
);
int Execute();

Return Value

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

Remarks

When the user starts execution from a stopped state in some other program's thread, this method is called on this program. 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 Resume method on the current thread in the program.

Warning

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

See also