IDebugStackFrame2

Applies to: yesVisual Studio noVisual 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

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

Syntax

IDebugStackFrame2 : IUnknown

Notes for Implementers

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

Notes for Callers

Call EnumFrameInfo to retrieve an IEnumDebugFrameInfo2 interface. Call 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
GetCodeContext Gets the code context for this stack frame.
GetDocumentContext Gets the document context for this stack frame.
GetName Gets the name of the stack frame.
GetInfo Gets a description of the stack frame.
GetPhysicalStackRange Gets a machine-dependent representation of the range of physical addresses associated with a stack frame.
GetExpressionContext Gets an evaluation context for doing expression evaluation within the current context of a stack frame and thread.
GetLanguageInfo Gets the language associated with a stack frame.
GetDebugProperty Gets a description of the properties associated with a stack frame.
EnumProperties Creates an enumerator for stack frame properties.
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