ICorDebugNativeFrame::CanSetIP Method
Gets an HRESULT that indicates whether it is safe to set the instruction pointer (IP) to the specified offset location in native code.
Syntax
HRESULT CanSetIP (
[in] ULONG32 nOffset
);
Parameters
nOffset
[in] The desired setting for the instruction pointer.
Remarks
Use the CanSetIP
method prior to calling the ICorDebugNativeFrame::SetIP method. If CanSetIP
returns any HRESULT other than S_OK, you can still invoke ICorDebugNativeFrame::SetIP
, but there is no guarantee that the debugger will continue the safe and correct execution of the code being debugged.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for