MultiProcessDebugger (ServerSocket serverSocket) { boolean useDispatcher = Registry.get("python.debugger.use.dispatcher").asBoolean(); MultiProcessDebugger debugger = new MultiProcessDebugger(this, serverSocket, getConnectTimeout(), useDispatcher); debugger.addOtherDebuggerCloseListener(new MultiProcessDebugger.DebuggerProcessListener() { @Override public void threadsClosed(Set<String> threadIds) { for (PyThreadInfo t : mySuspendedThreads) { if (threadIds.contains(t.getId())) { if (getSession().isSuspended()) { getSession().resume(); break; } } } } }); return debugger; }