mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
If one thread finished its work, debugger loses access to other suspended threads (PY-16525)
After killing thread check if there are other suspended threads and notify UI of it.
This commit is contained in:
@@ -591,6 +591,13 @@ public class RemoteDebugger implements ProcessDebugger {
|
||||
thread.updateState(PyThreadInfo.State.KILLED, null);
|
||||
myThreads.remove(id);
|
||||
}
|
||||
for (PyThreadInfo threadInfo: myThreads.values()) {
|
||||
// notify UI of suspended threads left in debugger if one thread finished its work
|
||||
if ((threadInfo != null) && (threadInfo.getState() == PyThreadInfo.State.SUSPENDED)) {
|
||||
myDebugProcess.threadResumed(threadInfo);
|
||||
myDebugProcess.threadSuspended(threadInfo);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AbstractCommand.SHOW_CONSOLE: {
|
||||
|
||||
Reference in New Issue
Block a user