다음을 통해 공유


IDebugSettingsCallback2

Enables debug engines to read metric settings remotely.

IDebugSettingsCallback2D : IUnknown

Notes for Implementers

This interface is implemented by the event callback of the session debug manager and consumed by debug engines. It could also be used locally instead of Dbgmetric[d].lib.

Methods

The following table shows the methods of IDebugSettingsCallback2.

Method

Description

IDebugSettingsCallback2::EnumEEs

Enumerates the available expression evaluators given the language and vendor identifiers.

IDebugSettingsCallback2::GetEELocalObject

Retrieves a expression evaluator local object given the metric.

IDebugSettingsCallback2::GetEEMetricDword

Retrieves a value that corresponds to the specified metric of the expression evaluator.

IDebugSettingsCallback2::GetEEMetricFile

Retrieves the expression evaluator metric file given the name or the metric.

IDebugSettingsCallback2::GetEEMetricGuid

Retrieves the unique identifier for a expression evaluator metric given its name.

IDebugSettingsCallback2::GetEEMetricString

Retrieves the value string of an expression evaluator metric given its name.

IDebugSettingsCallback2::GetMetricDword

Retrieves the value of a metric given its name.

IDebugSettingsCallback2::GetMetricGuid

Retrieves the unique identifier of a metric given its name.

IDebugSettingsCallback2::GetMetricString

Retrieves the value string of the metric given its name.

Requirements

Header: Msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

Example

The following example shows a function that takes an IDebugSettingsCallback2 object as a parameter.

HRESULT GetDebugSettingsCallback (IDebugSettingsCallback2 **ppCallback)
{
    HRESULT hRes = E_FAIL;

    if ( ppCallback )
   {
        if ( EVAL(m_pdec) )
            hRes = m_pdec->QueryInterface(IID_IDebugSettingsCallback2, (void **)ppCallback);
        else
            hRes = E_FAIL;
    }
    else
        hRes = E_INVALIDARG;

    return ( hRes );
}