ICorDebugProcess2

更新:2007 年 11 月

ICorDebugProcess 接口的逻辑扩展,表示运行托管代码的进程。

interface ICorDebugProcess2 : IUnknown {
        
    HRESULT ClearUnmanagedBreakpoint (
        [in] CORDB_ADDRESS             address
    );
        
    HRESULT GetDesiredNGENCompilerFlags (
        [out] DWORD                    *pdwFlags
    );
        
    HRESULT GetReferenceValueFromGCHandle (
        [in] UINT_PTR                  handle,
        [out] ICorDebugReferenceValue  **pOutValue
    );
        
    HRESULT GetThreadForTaskID (
        [in] TASKID                    taskid,
        [out] ICorDebugThread2         **ppThread
    );
        
    HRESULT GetVersion (
        [out] COR_VERSION*             version
    );
        
    HRESULT SetDesiredNGENCompilerFlags (
                [in] DWORD                     pdwFlags
    );
        
    HRESULT SetUnmanagedBreakpoint (
                [in] CORDB_ADDRESS             address,
        [in] ULONG32                   bufsize,
        [out, size_is(bufsize), length_is(*bufLen)] 
            BYTE                       buffer[],
        [out] ULONG32                  *bufLen
    );
        
};

方法

方法

说明

ICorDebugProcess2::ClearUnmanagedBreakpoint 方法

移除先前通过调用 ICorDebugProcess2::SetUnmanagedBreakpoint 在指定偏移量处设置的断点。

ICorDebugProcess2::GetDesiredNGENCompilerFlags 方法

获取一些标志,公共语言运行库 (CLR) 必须设置这些标志才能将映像加载到由此 ICorDebugProcess2 引用的进程中。

ICorDebugProcess2::GetReferenceValueFromGCHandle 方法

获取一个引用指针,该指针指向具有垃圾回收句柄的指定托管对象。

ICorDebugProcess2::GetThreadForTaskID 方法

获取正在其上执行具有指定标识符的任务的线程。

ICorDebugProcess2::GetVersion 方法

获取正在运行的被调试进程所使用的 CLR。

ICorDebugProcess2::SetDesiredNGENCompilerFlags 方法

设置一些标志,实时 (JIT) 编译器需要使用这些标志才能将映像加载到正在调试的进程中。

ICorDebugProcess2::SetUnmanagedBreakpoint 方法

在指定的本机映像偏移量处设置非托管断点。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorDebug.idl

**库:**CorGuids.lib

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

请参见

参考

ICorDebugProcess

其他资源

调试接口