Share via


IRemoteDebugApplication::ConnectDebugger

Connects a debugger to this application.

Syntax

HRESULT ConnectDebugger(  
   IApplicationDebugger*  pad  
);  

Parameters

pad
[in] The debugger to attach to this application.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.
E_FAIL A debugger is already connected to this application.

Remarks

An application can have only one debugger connected at a time. This method fails if a debugger is already connected.

See also

IRemoteDebugApplication::GetDebugger
IRemoteDebugApplication Interface