IDebugExpressionContext2
This interface represents a context for expression evaluation
IDebugExpressionContext2 : IUnknown
Notes for Implementers
The debug engine (DE) implements this interface to represent a context in which an expression can be evaluated.
Notes for Callers
A call to IDebugStackFrame2::GetExpressionContext returns the this interface. This interface is accessible only when the program being debugged has been paused and a stack frame is available.
Methods in Vtable Order
The following table shows the methods of IDebugExpressionContext2.
Method |
Description |
---|---|
Retrieves the name of the evaluation context. |
|
Parses a text-based expression for evaluation. |
Remarks
An evaluation context can be thought of as a scope for performing expression evaluation.
When a program has halted, the session debug manager (SDM) obtains a stack frame from the DE with a call to IDebugThread2::EnumFrameInfo. The SDM then calls IDebugStackFrame2::GetExpressionContext to get the IDebugExpressionContext2 interface. This is followed by a call to IDebugExpressionContext2::ParseText to create an IDebugExpression2 interface, which represents the parsed expression ready to be evaluated.
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll