共用方式為


ICorDebug::DebugActiveProcess 方法

將調試程式附加至現有的進程。

語法

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

參數

id [in]要附加調試程式之進程的標識碼。

win32Attach [in]布林值, true 如果調試程式應該做為進程的 Win32 調試程式,並分派 Unmanaged 回呼,則為 ,否則 false為 。

ppProcess [out]“ICorDebugProcess” 物件的位址指標,表示調試程式已附加至其中的進程。

備註

Win9x 和非 x86 平臺上不支援 Interop 偵錯,例如 IA-64 型和 AMD64 型平臺。

需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework 版本: 自 1.0 起提供

另請參閱