ICorDebug::D ebugActiveProcess 方法

将调试器附加到现有进程。

Syntax

HRESULT DebugActiveProcess (
    [in]  DWORD               id,
    [in]  BOOL                win32Attach,
    [out] ICorDebugProcess    **ppProcess
);

参数

id [in]调试器要附加到的进程 ID。

win32Attach [in]如果调试器应充当进程的 Win32 调试器并调度非托管回调,则设置为布尔值 true ;否则为 false

ppProcess [out]指向“ICorDebugProcess”对象的地址的指针,该对象表示调试器附加到的进程。

注解

Win9x 和非 x86 平台上不支持互作调试,例如基于 IA-64 和基于 AMD64 的平台。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl、CorDebug.h

图书馆: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起可用

另请参阅