Compartilhar via


IDebugStackFrame2

This interface represents a single stack frame in a call stack in a particular thread.

IDebugStackFrame2 : IUnknown

Notes for Implementers

The debug engine (DE) implements this interface to represent a stack frame.

Notes for Callers

Call IDebugThread2::EnumFrameInfo to retrieve an IEnumDebugFrameInfo2 interface. Call IEnumDebugFrameInfo2::Next to retrieve a FRAMEINFO structure that contains the IDebugStackFrame2 interface.

Methods in Vtable Order

The following table shows the methods of IDebugStackFrame2.

Method

Description

IDebugStackFrame2::GetCodeContext

Gets the code context for this stack frame.

IDebugStackFrame2::GetDocumentContext

Gets the document context for this stack frame.

IDebugStackFrame2::GetName

Gets the name of the stack frame.

IDebugStackFrame2::GetInfo

Gets a description of the stack frame.

IDebugStackFrame2::GetPhysicalStackRange

Gets a machine-dependent representation of the range of physical addresses associated with a stack frame.

IDebugStackFrame2::GetExpressionContext

Gets an evaluation context for doing expression evaluation within the current context of a stack frame and thread.

IDebugStackFrame2::GetLanguageInfo

Gets the language associated with a stack frame.

IDebugStackFrame2::GetDebugProperty

Gets a description of the properties associated with a stack frame.

IDebugStackFrame2::EnumProperties

Creates an enumerator for stack frame properties.

IDebugStackFrame2::GetThread

Gets the thread associated with a stack frame.

Remarks

This interface is obtained only when the program being debugged has been stopped at a breakpoint (either caused by a user-set breakpoint or an exception). From this interface, an expression context can be obtained to evaluate expressions, a list of registers can be returned, or the call stack can be obtained and examined.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Concepts

Core Interfaces