Debugging Tools for Windows |
The SetScopeFrameByIndex method sets the current scope to the scope of one of the frames on the call stack.
HRESULT
IDebugSymbols3::SetScopeFrameByIndex(
IN ULONG Index
);
This method may also return error values. See Return Values for more details.
SetScopeFrameByIndex is available in IDebugSymbols3 and later versions.
When an event occurs and the debugger engine breaks into a target, the scope is set to the current function call (the function that was executing when the event occurred). Calling this method with Index set to one will change the current scope to the caller of the current function; with Index set to two, the scope is changed to the caller's caller, and so on.
For more information about scopes, see Scopes and Symbol Groups.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
.frame (Set Local Context), GetCurrentScopeFrameIndex, SetScopeFromStoredEvent, SetScope