DebugClients/Python3/DebugClientBase.py

branch
debugger speed
changeset 5005
684f5ba04f0b
parent 4944
d4709f4818bb
child 5041
f00a4c8bcbbd
--- a/DebugClients/Python3/DebugClientBase.py	Thu Jun 23 19:24:09 2016 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Sun Jun 26 16:32:01 2016 +0200
@@ -267,8 +267,8 @@
         If mainThread is non-zero, then we are attaching to the already
         started mainthread of the app and the rest of the args are ignored.
         
-        @param target the start function of the target thread (i.e. the
-            user code)
+        @param target the start function of the target thread (i.e. the user
+            code)
         @param args arguments to pass to target
         @param kwargs keyword arguments to pass to target
         @param mainThread True, if we are attaching to the already
@@ -502,7 +502,6 @@
                     os.chdir(sys.path[1])
                 else:
                     os.chdir(wd)
-                tracePython = int(tracePython)
                 self.running = sys.argv[0]
                 self.mainFrame = None
                 self.inRawMode = False
@@ -520,7 +519,7 @@
                 # started
                 self.mainThread.clear_all_breaks()
                 
-                self.mainThread.tracePython = tracePython
+                self.mainThread.tracePythonLibs(int(tracePython))
                 
                 # This will eventually enter a local event loop.
                 # Note the use of backquotes to cause a repr of self.running.
@@ -562,7 +561,7 @@
                 sys.excepthook = self.__unhandled_exception
                 self.__interceptSignals()
                 
-                self.mainThread.tracePython = False
+                self.mainThread.tracePythonLibs(0)
                 
                 self.debugMod.__dict__['__file__'] = sys.argv[0]
                 sys.modules['__main__'] = self.debugMod
@@ -2028,7 +2027,7 @@
         self.debugging = True
         
         self.attachThread(mainThread=True)
-        self.mainThread.tracePython = tracePython
+        self.mainThread.tracePythonLibs(tracePython)
         
         # set the system exception handling function to ensure, that
         # we report on all unhandled exceptions
@@ -2086,7 +2085,7 @@
         self.__interact()
         
         self.attachThread(mainThread=True)
-        self.mainThread.tracePython = tracePython
+        self.mainThread.tracePythonLibs(tracePython)
         
         # set the system exception handling function to ensure, that
         # we report on all unhandled exceptions

eric ide

mercurial