示例#1
0
 /// <summary>
 /// Attaches the debugger to a process
 /// </summary>
 public void Attach(ServerProcess process)
 {
     lock (_syncHandle)
     {
         process.SetDebuggedBy(this);
         _processes.Add(process);
     }
 }
示例#2
0
        /// <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();
        }