Export (0) Print
Expand All

IDebugExpressionContext2

This interface represents a context for expression evaluation

IDebugExpressionContext2 : IUnknown

The debug engine (DE) implements this interface to represent a context in which an expression can be evaluated.

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.

The following table shows the methods of IDebugExpressionContext2.

Method

Description

IDebugExpressionContext2::GetName

Retrieves the name of the evaluation context.

IDebugExpressionContext2::ParseText

Parses a text-based expression for evaluation.

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.

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

Community Additions

ADD
Show:
© 2014 Microsoft