共用方式為


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);
};

方法

方法

描述

ICorDebugModule::CreateBreakpoint 方法

尚未實作。

ICorDebugModule::EnableClassLoadCallbacks 方法

判斷是否對此模組呼叫 ICorDebugManagedCallback::LoadClassICorDebugManagedCallback::UnloadClass 回呼。

ICorDebugModule::EnableJITDebugging 方法

判斷 Just-In-Time (JIT) 編譯器是否會為此模組內的方法保留偵錯資訊。

ICorDebugModule::GetAssembly 方法

為此模組取得包含的組件。

ICorDebugModule::GetBaseAddress 方法

取得模組的基底位址。

ICorDebugModule::GetClassFromToken 方法

從中繼資料取得 ICorDebugClass

ICorDebugModule::GetEditAndContinueSnapshot 方法

已被取代。

ICorDebugModule::GetFunctionFromRVA 方法

尚未實作。

ICorDebugModule::GetFunctionFromToken 方法

取得此中繼資料語彙基元指定的函式。

ICorDebugModule::GetGlobalVariableValue 方法

為指定的全域變數取得值物件。

ICorDebugModule::GetMetaDataInterface 方法

取得可用來檢查模組中繼資料的中繼資料介面指標。

ICorDebugModule::GetName 方法

取得模組的檔名。

ICorDebugModule::GetProcess 方法

為此模組取得包含的處理序。

ICorDebugModule::GetSize 方法

取得模組的大小 (以位元組為單位)。

ICorDebugModule::GetToken 方法

為此模組取得資料表項目的語彙基元。

ICorDebugModule::IsDynamic 方法

指出模組是否為動態。

ICorDebugModule::IsInMemory 方法

指出此模組是否僅存在於記憶體中。

需求

**平台:**請參閱 .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

請參閱

參考

ICorDebug

ICorDebugModule2

其他資源

偵錯介面