ICorDebugModule
更新:2007 年 11 月
表示 Common Language Runtime (CLR) 模組,其為可執行檔或動態連結程式庫 (DLL)。
interface ICorDebugModule : IUnknown {
HRESULT _stdcall GetProcess([out] ICorDebugProcess** ppProcess);
HRESULT _stdcall GetBaseAddress([out] uint64* pAddress);
HRESULT _stdcall GetAssembly([out] ICorDebugAssembly** ppAssembly);
HRESULT _stdcall GetName(
[in] unsigned int cchName,
[out] unsigned int* pcchName,
[out] ICorDebugModule szName);
HRESULT _stdcall EnableJITDebugging(
[in] long bTrackJITInfo,
[in] long bAllowJitOpts);
HRESULT _stdcall EnableClassLoadCallbacks([in] long bClassLoadCallbacks);
HRESULT _stdcall GetFunctionFromToken(
[in] unsigned int methodDef,
[out] ICorDebugFunction** ppFunction);
HRESULT _stdcall GetFunctionFromRVA(
[in] uint64 rva,
[out] ICorDebugFunction** ppFunction);
HRESULT _stdcall GetClassFromToken(
[in] unsigned int typeDef,
[out] ICorDebugClass** ppClass);
HRESULT _stdcall CreateBreakpoint([out] ICorDebugModuleBreakpoint** ppBreakpoint);
HRESULT _stdcall GetEditAndContinueSnapshot([out] ICorDebugEditAndContinueSnapshot** ppEditAndContinueSnapshot);
HRESULT _stdcall GetMetaDataInterface(
[in] GUID* riid,
[out] IUnknown** ppObj);
HRESULT _stdcall GetToken([out] unsigned int* pToken);
HRESULT _stdcall IsDynamic([out] long* pDynamic);
HRESULT _stdcall GetGlobalVariableValue(
[in] unsigned int fieldDef,
[out] ICorDebugValue** ppValue);
HRESULT _stdcall GetSize([out] unsigned int* pcBytes);
HRESULT _stdcall IsInMemory([out] long* pInMemory);
};
方法
方法 |
描述 |
---|---|
尚未實作。 |
|
判斷是否對此模組呼叫 ICorDebugManagedCallback::LoadClass 和 ICorDebugManagedCallback::UnloadClass 回呼。 |
|
判斷 Just-In-Time (JIT) 編譯器是否會為此模組內的方法保留偵錯資訊。 |
|
為此模組取得包含的組件。 |
|
取得模組的基底位址。 |
|
從中繼資料取得 ICorDebugClass。 |
|
已被取代。 |
|
尚未實作。 |
|
取得此中繼資料語彙基元指定的函式。 |
|
為指定的全域變數取得值物件。 |
|
取得可用來檢查模組中繼資料的中繼資料介面指標。 |
|
取得模組的檔名。 |
|
為此模組取得包含的處理序。 |
|
取得模組的大小 (以位元組為單位)。 |
|
為此模組取得資料表項目的語彙基元。 |
|
指出模組是否為動態。 |
|
指出此模組是否僅存在於記憶體中。 |
需求
**平台:**請參閱 .NET Framework 系統需求。
**標頭:**CorDebug.idl
**程式庫:**CorGuids.lib
**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0