Connects a debugger to this application.
[in] The debugger to attach to this application.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
The method succeeded.
A debugger is already connected to this application.
An application can have only one debugger connected at a time. This method fails if a debugger is already connected.