mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +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
|
pydevd_tracing.SetTrace(None) # no debugging on this thread
|
||||||
|
|
||||||
while not self.killReceived:
|
while not self.killReceived:
|
||||||
|
time.sleep(0.3)
|
||||||
if not self.pyDb.haveAliveThreads() and self.pyDb.writer.empty() \
|
if not self.pyDb.haveAliveThreads() and self.pyDb.writer.empty() \
|
||||||
and not has_data_to_redirect():
|
and not has_data_to_redirect():
|
||||||
try:
|
try:
|
||||||
@@ -291,7 +292,6 @@ class CheckOutputThread(PyDBDaemonThread):
|
|||||||
|
|
||||||
self.pyDb.checkOutputRedirect()
|
self.pyDb.checkOutputRedirect()
|
||||||
|
|
||||||
time.sleep(0.3)
|
|
||||||
|
|
||||||
def doKillPydevThread(self):
|
def doKillPydevThread(self):
|
||||||
self.killReceived = True
|
self.killReceived = True
|
||||||
|
|||||||
Reference in New Issue
Block a user