Debug Command 34 Debug Detach Command
Parameters
Pid
Returns
This command detaches from the debugee connection. It is the last comand issued before resuming the process.
The only DosDebug notifications that are returned by this command are DBG_N_Success and DBG_N_Error.
Restrictions
Detach only works on a debuggee process currently under debug using the attach command, DBG_C_Attach. You cannot use DBG_C_Detach if you used DBG_C_Connect. DBG_C_Attach and DBG_C_Detach are paired and are used for debugging a process that is already running.
Remarks
By using this function, a debugger can only remove debug context of a given debuggee process as stated above. If the debugger needs to detach and have the debuggee terminate, it is neccessary to use DBG_C_Term command instead of DBG_C_Detach. This will terminate the debuggee process and remove attach information.