次の方法で共有


ICorDebugManagedCallback2

更新 : 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
    );
};

メソッド

メソッド

説明

ICorDebugManagedCallback2::ChangeConnection メソッド

指定した接続に関連付けられているタスク セットが変更されたことをデバッガに通知します。

ICorDebugManagedCallback2::CreateConnection メソッド

新しい接続が作成されたことをデバッガに通知します。

ICorDebugManagedCallback2::DestroyConnection メソッド

指定した接続が終了したことをデバッガに通知します。

ICorDebugManagedCallback2::Exception メソッド

例外ハンドラの検索を開始したことをデバッガに通知します。

ICorDebugManagedCallback2::ExceptionUnwind メソッド

例外のアンワインド処理中にステータス通知を出します。

ICorDebugManagedCallback2::FunctionRemapComplete メソッド

コード実行が、編集された関数の新しいバージョンに切り替わったことをデバッガに通知します。

ICorDebugManagedCallback2::FunctionRemapOpportunity メソッド

コード実行が、編集された関数の古いバージョンのシーケンス ポイントに達したことをデバッガに通知します。

ICorDebugManagedCallback2::MDANotification メソッド

コード実行が、マネージ デバッグ アシスタント (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

参照

概念

マネージ デバッグ アシスタントによるエラーの診断

参照

ICorDebugManagedCallback

その他の技術情報

デバッグのインターフェイス