DebugClients/Python/DebugBase.py

branch
debugger speed
changeset 5083
4affedf129c5
parent 5064
9f4e3914e50c
child 5084
25115adf9758
diff -r 4c896f626bd6 -r 4affedf129c5 DebugClients/Python/DebugBase.py
--- a/DebugClients/Python/DebugBase.py	Wed Aug 03 21:41:40 2016 +0200
+++ b/DebugClients/Python/DebugBase.py	Mon Aug 08 22:02:45 2016 +0200
@@ -278,19 +278,17 @@
         @rtype trace function or None
         @exception bdb.BdbQuit
         """
-        if self.quitting:
-            return  # None
-        
         # give the client a chance to push through new break points.
         if self.eventPollFlag:
             self._dbgClient.eventPoll()
             self.eventPollFlag = False
+            
+            if self.quitting:
+                raise bdb.BdbQuit
         
         if event == 'line':
             if self.stop_here(frame) or self.break_here(frame):
                 self.user_line(frame)
-                if self.quitting:
-                    raise bdb.BdbQuit
             return
         
         if event == 'call':
@@ -305,8 +303,6 @@
                     Watch.watches != []):
                 # No need to trace this function
                 return
-            if self.quitting:
-                raise bdb.BdbQuit
             return self.trace_dispatch
         
         if event == 'return':
@@ -327,8 +323,6 @@
         if event == 'exception':
             if not self.__skipFrame(frame):
                 self.user_exception(frame, arg)
-                if self.quitting:
-                    raise bdb.BdbQuit
             return
 
         if event == 'c_call':

eric ide

mercurial