更新 : 2007 年 11 月
デバッガの例外処理とマネージ デバッグ アシスタント (MDA: Managed Debugging Assistant) をサポートするためのメソッドを提供します。ICorDebugManagedCallback2 は、ICorDebugManagedCallback インターフェイスの論理拡張機能です。
interface ICorDebugManagedCallback2 : IUnknown {
HRESULT ChangeConnection (
[in] ICorDebugProcess *pProcess,
[in] CONNID dwConnectionId
);
HRESULT CreateConnection (
[in] ICorDebugProcess *pProcess,
[in] CONNID dwConnectionId,
[in] WCHAR *pConnName
);
HRESULT DestroyConnection (
[in] ICorDebugProcess *pProcess,
[in] CONNID dwConnectionId
);
HRESULT Exception (
[in] ICorDebugAppDomain *pAppDomain,
[in] ICorDebugThread *pThread,
[in] ICorDebugFrame *pFrame,
[in] ULONG32 nOffset,
[in] CorDebugExceptionCallbackType dwEventType,
[in] DWORD dwFlags
);
HRESULT ExceptionUnwind (
[in] ICorDebugAppDomain *pAppDomain,
[in] ICorDebugThread *pThread,
[in] CorDebugExceptionUnwindCallbackType dwEventType,
[in] DWORD dwFlags
);
HRESULT FunctionRemapComplete (
[in] ICorDebugAppDomain *pAppDomain,
[in] ICorDebugThread *pThread,
[in] ICorDebugFunction *pFunction
);
HRESULT FunctionRemapOpportunity (
[in] ICorDebugAppDomain *pAppDomain,
[in] ICorDebugThread *pThread,
[in] ICorDebugFunction *pOldFunction,
[in] ICorDebugFunction *pNewFunction,
[in] ULONG32 oldILOffset
);
HRESULT MDANotification (
[in] ICorDebugController *pController,
[in] ICorDebugThread *pThread,
[in] ICorDebugMDA *pMDA
);
};
メソッド
メソッド |
説明 |
---|---|
指定した接続に関連付けられているタスク セットが変更されたことをデバッガに通知します。 |
|
新しい接続が作成されたことをデバッガに通知します。 |
|
指定した接続が終了したことをデバッガに通知します。 |
|
例外ハンドラの検索を開始したことをデバッガに通知します。 |
|
例外のアンワインド処理中にステータス通知を出します。 |
|
コード実行が、編集された関数の新しいバージョンに切り替わったことをデバッガに通知します。 |
|
コード実行が、編集された関数の古いバージョンのシーケンス ポイントに達したことをデバッガに通知します。 |
|
コード実行が、マネージ デバッグ アシスタント (MDA) メッセージを検出したことを通知します。 |
解説
ICorDebugManagedCallback2 インターフェイスは ICorDebugManagedCallback インターフェイスを拡張し、.NET Framework Version 2.0 で導入された新しいデバッグ イベントを処理します。
.NET Framework 2.0 アプリケーションをデバッグする場合は、デバッガに ICorDebugManagedCallback2 を実装する必要があります。ICorDebugManagedCallback または ICorDebugManagedCallback2 のインスタンスは、コールバック オブジェクトとして ICorDebug::SetManagedHandler に渡されます。
必要条件
プラットフォーム : 「.NET Framework システム要件」を参照
ヘッダー : CorDebug.idl
ライブラリ : CorGuids.lib
.NET Framework のバージョン : 3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0