Do not start CheckOutPutThread in subprocesses without alive threads (PY-14969

)

If there is no alive threads, CheckOutputThread breaks debug session.
This commit is contained in:
Elizaveta Shashkova
2015-06-23 18:04:49 +03:00
parent 027aa43385
commit e4e9779014
+4 -1
View File
@@ -2033,7 +2033,10 @@ def _locked_settrace(
atexit.register(stoptrace)
PyDBCommandThread(debugger).start()
CheckOutputThread(debugger).start()
if debugger.haveAliveThreads():
CheckOutputThread(debugger).start()
else:
PydevdLog(2, "Do not start CheckOutputThread in process", os.getpid())
#Suspend as the last thing after all tracing is in place.
if suspend: