eric6/DebugClients/Python/ThreadExtension.py

branch
multi_processing
changeset 7416
6f899e82f9a2
parent 7415
e953b2a449a9
child 7417
9391a330f50f
--- a/eric6/DebugClients/Python/ThreadExtension.py	Sat Feb 15 12:13:52 2020 +0100
+++ b/eric6/DebugClients/Python/ThreadExtension.py	Sat Feb 15 14:33:13 2020 +0100
@@ -284,8 +284,11 @@
             @type method pointer
             """
             newThread = DebugBase(_debugClient)
+            newThread.name = self.name
+            
             _debugClient.threads[self.ident] = newThread
-            newThread.name = self.name
+            _debugClient.dumpThreadList()
+            
             # see DebugBase.bootstrap
             sys.settrace(newThread.trace_dispatch)
             try:
@@ -295,6 +298,7 @@
                 newThread.user_exception(excinfo, True)
             finally:
                 sys.settrace(None)
+                _debugClient.dumpThreadList()
         
         class ThreadWrapper(module.Thread):
             """
@@ -372,11 +376,12 @@
             name = 'QtThread-{0}'.format(_qtThreadNumber)
             
             _qtThreadNumber += 1
-        
+            
             newThread.id = ident
             newThread.name = name
             
             _debugClient.threads[ident] = newThread
+            _debugClient.dumpThreadList()
             
             # see DebugBase.bootstrap
             sys.settrace(newThread.trace_dispatch)
@@ -390,6 +395,7 @@
                 newThread.user_exception(excinfo, True)
             finally:
                 sys.settrace(None)
+                _debugClient.dumpThreadList()
     
         class QThreadWrapper(module.QThread):
             """

eric ide

mercurial