/// <summary> /// Attaches the debugger to a process /// </summary> public void Attach(ServerProcess process) { lock (_syncHandle) { process.SetDebuggedBy(this); _processes.Add(process); } }
/// <summary> /// Detaches the debugger from a process. /// </summary> public void Detach(ServerProcess process) { lock (_syncHandle) { _processes.Disown(process); _brokenProcesses.SafeDisown(process); process.SetDebuggedBy(null); } Pulse(); }