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:
Elizaveta Shashkova
2015-05-21 16:47:25 +03:00
parent e048866da8
commit 60f25cd120

View File

@@ -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