Bugfix to react on new breakpoints in a running program. debugger speed

Sun, 24 Jul 2016 20:37:28 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sun, 24 Jul 2016 20:37:28 +0200
branch
debugger speed
changeset 5061
753f720c2a48
parent 5050
a6335e924d08
child 5062
904225763ac0

Bugfix to react on new breakpoints in a running program.

DebugClients/Python/BreakpointWatch.py file | annotate | diff | comparison | revisions
DebugClients/Python3/BreakpointWatch.py file | annotate | diff | comparison | revisions
diff -r a6335e924d08 -r 753f720c2a48 DebugClients/Python/BreakpointWatch.py
--- a/DebugClients/Python/BreakpointWatch.py	Sat Jul 23 14:15:43 2016 +0200
+++ b/DebugClients/Python/BreakpointWatch.py	Sun Jul 24 20:37:28 2016 +0200
@@ -54,7 +54,7 @@
         lines = self.breakInFile.setdefault(filename, [])
         if lineno not in lines:
             lines.append(lineno)
-        self.breakInFrameCache = {}
+        self.breakInFrameCache.clear()
 
     def deleteMe(self):
         """
@@ -93,7 +93,7 @@
         bp = Breakpoint.breaks.get((filename, lineno))
         if bp:
             bp.deleteMe()
-        Breakpoint.breakInFrameCache = {}
+        Breakpoint.breakInFrameCache.clear()
     
     @staticmethod
     def get_break(filename, lineno):
diff -r a6335e924d08 -r 753f720c2a48 DebugClients/Python3/BreakpointWatch.py
--- a/DebugClients/Python3/BreakpointWatch.py	Sat Jul 23 14:15:43 2016 +0200
+++ b/DebugClients/Python3/BreakpointWatch.py	Sun Jul 24 20:37:28 2016 +0200
@@ -54,7 +54,7 @@
         lines = self.breakInFile.setdefault(filename, [])
         if lineno not in lines:
             lines.append(lineno)
-        self.breakInFrameCache = {}
+        self.breakInFrameCache.clear()
 
     def deleteMe(self):
         """
@@ -93,7 +93,7 @@
         bp = Breakpoint.breaks.get((filename, lineno))
         if bp:
             bp.deleteMe()
-        Breakpoint.breakInFrameCache = {}
+        Breakpoint.breakInFrameCache.clear()
     
     @staticmethod
     def get_break(filename, lineno):

eric ide

mercurial