Sets the next statement to execute when debugging an application.
Syntax
HRESULT SetNextStatement( IDebugStackFrame *pStackFrame, IDebugCodeContext *pCodeContext );
Parameters
- pStackFrame
- [in] Address of the IDebugStackFrame interface that specifies the next statement to execute. It can be NULL, indicating the current stack frame.
- pCodeContext
- [in] Address of the IDebugCodeContext interface that specifies the next statement to execute. It can be NULL, indicating the current code context.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
The SetNextStatement method forces execution to continue as closely as possible to the given code context, in the context of the given stack frame.