IDebugThread2::CanSetNextStatement
Applies to: Visual Studio Visual 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
Determines whether the current instruction pointer can be set to the given stack frame.
Syntax
HRESULT CanSetNextStatement (
IDebugStackFrame2* pStackFrame,
IDebugCodeContext2* pCodeContext
);
int CanSetNextStatement (
IDebugStackFrame2 pStackFrame,
IDebugCodeContext2 pCodeContext
);
Parameters
pStackFrame
Reserved for future use; set to a null value. If this is a null value, use the current stack frame.
pCodeContext
[in] An IDebugCodeContext2 object that describes the code location about to be executed and its context.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
If this method returns S_OK
, then call the SetNextStatement method to actually set the next statement.