Wrong frames when running in sys.breakpoint fixed.

Tue, 25 Oct 2016 22:50:59 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Tue, 25 Oct 2016 22:50:59 +0200
changeset 5273
be55746da9d1
parent 5272
5684dd6667e6
child 5274
a19743a4a8fa

Wrong frames when running in sys.breakpoint fixed.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python/ThreadExtension.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Tue Oct 25 21:45:20 2016 +0200
+++ b/DebugClients/Python/DebugBase.py	Tue Oct 25 22:50:59 2016 +0200
@@ -103,6 +103,11 @@
         # background task to periodicaly check for client interactions
         self.eventPollFlag = False
         self.timer = _thread.start_new_thread(self.__eventPollTimer, ())
+        
+        # provide a hook to perform a hard breakpoint
+        # Use it like this:
+        # if hasattr(sys, 'breakpoint): sys.breakpoint()
+        sys.breakpoint = self.set_trace
 
     def __eventPollTimer(self):
         """
--- a/DebugClients/Python/ThreadExtension.py	Tue Oct 25 21:45:20 2016 +0200
+++ b/DebugClients/Python/ThreadExtension.py	Tue Oct 25 22:50:59 2016 +0200
@@ -60,11 +60,6 @@
         del sys.modules['threading']
         
         sys.meta_path.insert(0, self)
-        
-        # provide a hook to perform a hard breakpoint
-        # Use it like this:
-        # if hasattr(sys, 'breakpoint): sys.breakpoint()
-        sys.breakpoint = self.set_trace
 
     def attachThread(self, target=None, args=None, kwargs={},
                      mainThread=False):

eric ide

mercurial