public void Detach() { CancelRuntimeInvokes(); try { debugger.Detach(); } catch (Exception ex) { Console.WriteLine(ex); } finally { running = false; } }