共用方式為


ICorDebugCode 介面

更新:2010 年 9 月

表示 Microsoft Intermediate Language (MSIL) 程式碼或機器碼的區段。

方法

方法

描述

ICorDebugCode::CreateBreakpoint 方法

在指定的位移上建立中斷點。

ICorDebugCode::GetAddress 方法

取得此 ICorDebugCode 所表示之程式碼區段的相對虛擬位址 (RVA)。

ICorDebugCode::GetCode 方法

取得指定之函式的所有程式碼 (已針對反組譯格式化)。 這個方法已被取代,請改用 ICorDebugCode2::GetCodeChunks

ICorDebugCode::GetEnCRemapSequencePoints 方法

尚未實作。

ICorDebugCode::GetFunction 方法

取得與此 ICorDebugCode 相關聯的 ICorDebugFunction

ICorDebugCode::GetILToNativeMapping 方法

取得 COR_DEBUG_IL_TO_NATIVE_MAP 執行個體的陣列,表示從 MSIL 位移到原生位移的對應。

ICorDebugCode::GetSize 方法

取得此 ICorDebugCode 所表示的二進位程式碼大小 (以位元組為單位)。

ICorDebugCode::GetVersionNumber 方法

取得以一起始的數字,這個數字可識別此 ICorDebugCode 所表示的程式碼版本。

ICorDebugCode::IsIL 方法

取得值,指出此 ICorDebugCode 是否以 MSIL 編譯。

備註

ICorDebugCode可以表示 MSIL 或機器碼。 ICorDebugFunction 物件,代表 MSIL程式碼碼可以有零或一個與它相關聯的 ICorDebugCode物件。 ICorDebugFunction 物件,代表本機碼可以包含任何數量與它相關聯的 ICorDebugCode物件。

注意事項注意事項

這個介面不支援遠端呼叫,不論是跨電腦或跨處理序。

需求

**平台:**請參閱 .NET Framework 系統需求

**標頭:**CorDebug.idl、CorDebug.h

**程式庫:**CorGuids.lib

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

請參閱

參考

ICorDebugCode2 介面

其他資源

偵錯介面

變更記錄

日期

記錄

原因

2010 年 9 月

釐清 ICorDebugCode 和 ICorDebugFunction 之間的關聯性。

內容 Bug 修正。