public static void CleanupDebugger() { if (_openedWindows.Count == 0) { //All windows have been closed, disable debugger DebugWorkspaceManager.Clear(); InteropEmu.DebugRelease(); } }
public static void CleanupDebugger() { if (_openedWindows.Count == 0) { //All windows have been closed, disable debugger DebugWorkspaceManager.SaveWorkspace(); DebugWorkspaceManager.Clear(); DebugApi.ReleaseDebugger(); } }
private static void Debugger_FormClosed(object sender, FormClosedEventArgs e) { _openedWindows.Remove((Form)sender); if (_openedWindows.Count == 0) { //All windows have been closed, disable debugger DebugWorkspaceManager.Clear(); InteropEmu.DebugRelease(); } }
public static void CleanupDebugger() { if (_openedWindows.Count == 0) { //All windows have been closed, disable debugger DebugWorkspaceManager.Clear(); Task.Run(() => { //Run this in another thread to avoid deadlocks when this is called within a notification handler InteropEmu.DebugRelease(); }); } }