From e4e9779014b0d19a23b78654b421daf29811eceb Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Tue, 23 Jun 2015 18:03:10 +0300 Subject: [PATCH] Do not start CheckOutPutThread in subprocesses without alive threads (PY-14969 ) If there is no alive threads, CheckOutputThread breaks debug session. --- python/helpers/pydev/pydevd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index dc290d3f7725..cc1107c8d260 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -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: