ICorDebugRemote::DebugActiveProcessEx Method

Launches a process on a remote machine under the debugger.

HRESULT DebugActiveProcessEx (
    [in]  ICorDebugRemoteTarget *   pRemoteTarget,
    [in]  DWORD                     dwProcessId,
    [in]  BOOL                      fWin32Attach,
    [out] ICorDebugProcess **       ppProcess
);

Parameters

  • pRemoteTarget
    [in] Pointer to an ICorDebugRemoteTarget Interface. This parameter is used to determine the machine on which the process is running.

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

  • win32Attach
    [in] 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 Interface object that represents the process to which the debugger has been attached.

Return Value

  • S_OK
    Successfully attached to the process on the remote machine.

  • E_FAIL (or other E_ return codes)
    Unable to attach to the process on the remote machine.

Remarks

Mixed-mode debugging is not supported in Silverlight.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Versions: 3.5 SP1

See Also

Reference

ICorDebugRemote Interface

ICorDebug Interface

ICorDebugCode Interface

Other Resources

Debugging Interfaces

Change History

Date

History

Reason

Added topic.

Information enhancement.