Was only valid, if thread module has been explicitly imported before threading. debugger fine grinding

Tue, 21 Mar 2017 21:54:13 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Tue, 21 Mar 2017 21:54:13 +0100
branch
debugger fine grinding
changeset 5647
f40b614df103
parent 5646
22f42d9cb264
child 5648
ac54e5b9ebad

Was only valid, if thread module has been explicitly imported before threading.

DebugClients/Python/ThreadExtension.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/ThreadExtension.py	Tue Mar 21 19:59:59 2017 +0100
+++ b/DebugClients/Python/ThreadExtension.py	Tue Mar 21 21:54:13 2017 +0100
@@ -297,7 +297,8 @@
                 @param run the run method of threading.Thread
                 @type method pointer
                 """
-                newThread = _debugClient.threads[self.ident]
+                newThread = DebugBase(_debugClient)
+                _debugClient.threads[self.ident] = newThread
                 newThread.name = self.name
                 # see DebugBase.bootstrap
                 sys.settrace(newThread.trace_dispatch)

eric ide

mercurial