In Visual Studio 2015, this way of implementing expression evaluators is deprecated. For information about implementing CLR expression evaluators, please see CLR Expression Evaluators and Managed Expression Evaluator Sample.

This interface provides additional information about an object.


IDebugObject2 : IDebugObject

Notes for Implementers

The expression evaluator implements this interface to offer support for aliases and access to information about the object.

Notes for Callers

An IDebugObject interface can obtain this interface by using QueryInterface. Also, GetObject returns this interface.

Methods in Vtable order

In addition to the methods on the IDebugObject interface, the IDebugObject2 interface implements the following:

Method Description
GetBackingFieldForProperty Gets the field or variable (if any) that may be backing the property represented by this object.
GetICorDebugValue Gets the managed code object representing the value of this object.
CreateAlias Creates a unique ID for this object or returns an existing alias.
GetAlias Gets the alias associated with this object, if any.
GetField Gets the type of this object.
IsUserData Determines whether this object represents user data.
IsEncOutdated Determines whether the Edit and Continue state is no longer valid.

A custom expression evaluator does not implement this method (it should always return E_NOTIMPL).


See IDebugAlias for a discussion on aliases.


Header: ee.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also