mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
Debugger exits in multiprocess programs (PY-15007)
CheckOutputThread finishes debug session too early. The pause should be made in order to start all necessary threads in the new process tracing.
This commit is contained in:
@@ -278,6 +278,7 @@ class CheckOutputThread(PyDBDaemonThread):
|
||||
pydevd_tracing.SetTrace(None) # no debugging on this thread
|
||||
|
||||
while not self.killReceived:
|
||||
time.sleep(0.3)
|
||||
if not self.pyDb.haveAliveThreads() and self.pyDb.writer.empty() \
|
||||
and not has_data_to_redirect():
|
||||
try:
|
||||
@@ -291,7 +292,6 @@ class CheckOutputThread(PyDBDaemonThread):
|
||||
|
||||
self.pyDb.checkOutputRedirect()
|
||||
|
||||
time.sleep(0.3)
|
||||
|
||||
def doKillPydevThread(self):
|
||||
self.killReceived = True
|
||||
|
||||
Reference in New Issue
Block a user