Partager via


Call Stack Evaluation

In order to view the stack frames of the call stack during break mode , you must implement the IDebugThread2::EnumFrameInfo method.

Methods for Evaluation

For a simple debug engine (DE), there might be only one stack frame. To examine the stack frame during break mode, you must implement the following methods of IDebugStackFrame2.

Method

Description

IDebugStackFrame2::GetCodeContext

Gets the code context for a stack frame. The code context represents the current instruction pointer in a stack frame.

IDebugStackFrame2::GetDocumentContext

Gets the document context for a stack frame. The document context represents the current location in the source code for a stack frame. Required for viewing the source code when you are stopped in a program.

These methods require implementation of several context-related interfaces and methods. Thus, you must implement the IDebugCodeContext2::GetDocumentContext method and the following methods of IDebugDocumentContext2.

Method

Description

IDebugDocumentContext2::GetStatementRange

Gets the file statement range of a document context.

To enumerate code contexts, you must implement all the methods of IEnumDebugCodeContexts2.

See Also

Concepts

Execution Control and State Evaluation