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 |
---|---|
Enumerates the available expression evaluators given the language and vendor identifiers. |
|
Retrieves a expression evaluator local object given the metric. |
|
Retrieves a value that corresponds to the specified metric of the expression evaluator. |
|
Retrieves the expression evaluator metric file given the name or the metric. |
|
Retrieves the unique identifier for a expression evaluator metric given its name. |
|
Retrieves the value string of an expression evaluator metric given its name. |
|
Retrieves the value of a metric given its name. |
|
Retrieves the unique identifier of a metric given its name. |
|
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 );
}