ICorDebugManagedCallback2 介面ICorDebugManagedCallback2 Interface

提供方法來支援偵錯工具例外狀況處理和 Managed 偵錯助理 (MDA)。Provides methods to support debugger exception handling and managed debugging assistants (MDAs). ICorDebugManagedCallback2ICorDebugManagedCallback 介面的邏輯擴充。ICorDebugManagedCallback2 is a logical extension of the ICorDebugManagedCallback interface.

方法Methods

方法Method 描述Description
ChangeConnection 方法ChangeConnection Method 通知偵錯工具,與指定之連接相關聯的工作集已變更。Notifies the debugger that the set of tasks associated with the specified connection has changed.
CreateConnection 方法CreateConnection Method 通知偵錯工具已建立新的連接。Notifies the debugger that a new connection has been created.
DestroyConnection 方法DestroyConnection Method 通知偵錯工具已終止指定的連接。Notifies the debugger that the specified connection has been terminated.
Exception 方法Exception Method 通知偵錯工具已開始搜尋例外狀況處理常式。Notifies the debugger that a search for an exception handler has started.
ExceptionUnwind 方法ExceptionUnwind Method 提供例外狀況回溯進程期間的狀態通知。Provides a status notification during the exception unwinding process.
FunctionRemapComplete 方法FunctionRemapComplete Method 通知偵錯工具程式碼執行已切換至新版本的編輯函式。Notifies the debugger that code execution has switched to a new version of an edited function.
FunctionRemapOpportunity 方法FunctionRemapOpportunity Method 通知偵錯工具程式碼執行已在較舊版本的已編輯函式中到達序列點。Notifies the debugger that code execution has reached a sequence point in an older version of an edited function.
MDANotification 方法MDANotification Method 提供程式碼執行在 (MDA) 訊息中遇到 managed 偵錯工具的通知。Provides notification that code execution has encountered a managed debugging assistant (MDA) message.

備註Remarks

ICorDebugManagedCallback2介面會擴充 ICorDebugManagedCallback 介面,以處理 .NET Framework 版本2.0 中引進的新的 debug 事件。The ICorDebugManagedCallback2 interface extends the ICorDebugManagedCallback interface to handle new debug events introduced in the .NET Framework version 2.0.

ICorDebugManagedCallback2如果偵錯工具正在進行 .NET Framework 2.0 應用程式的偵錯工具,則必須執行偵錯工具。A debugger must implement ICorDebugManagedCallback2 if it is debugging .NET Framework 2.0 applications. 或的實例 ICorDebugManagedCallback ICorDebugManagedCallback2 會以回呼物件的形式傳遞至 ICorDebug:: SetManagedHandlerAn instance of ICorDebugManagedCallback or ICorDebugManagedCallback2 is passed as the callback object to ICorDebug::SetManagedHandler.

注意

這個介面不支援跨電腦或跨處理序的遠端呼叫。This interface does not support being called remotely, either cross-machine or cross-process.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 2.0 起可用Available since 2.0.NET Framework Versions: 自 2.0 起可用Available since 2.0

另請參閱See also