예제 #1
0
 public ProcessInformation CreateProcess(Func<ProcessInformation> processCreator) {
   if (_debuggerThread != null) {
     throw new InvalidOperationException("Debugger already attached to a process.");
   }
   _debuggerThread = new DebuggerThread();
   return _debuggerThread.Start(processCreator);
 }
예제 #2
0
 public void Dispose() {
   if (_debuggerThread != null) {
     _debuggerThread.Dispose();
     _debuggerThread = null;
   }
 }