다음을 통해 공유


ICorDebug::DebugActiveProcess Method

Attaches the debugger to an existing process.

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

Parameters

  • id
    [in] The ID of the process to which the debugger is to be attached.

  • win32Attach
    [in] Boolean value that is set to true if the debugger should behave as the Win32 debugger for the process and dispatch the unmanaged callbacks; otherwise, false.

  • ppProcess
    [out] A pointer to the address of an ICorDebugProcess object that represents the process to which the debugger has been attached.

Remarks

Interop debugging is not supported on Win9x and non-x86 platforms, such as IA-64-based and AMD64-based platforms.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

ICorDebug Interface