Fix an issue when a breakpoint should be ignored a number of times. debugger speed

Thu, 15 Sep 2016 21:49:13 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Thu, 15 Sep 2016 21:49:13 +0200
branch
debugger speed
changeset 5170
fb9168c2e069
parent 5088
5b992bcb3c86
child 5174
8c48f5e0cd92

Fix an issue when a breakpoint should be ignored a number of times.

DebugClients/Python/BreakpointWatch.py file | annotate | diff | comparison | revisions
DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/BreakpointWatch.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/BreakpointWatch.py	Mon Aug 08 23:08:38 2016 +0200
+++ b/DebugClients/Python/BreakpointWatch.py	Thu Sep 15 21:49:13 2016 +0200
@@ -119,7 +119,7 @@
         @return Breakpoint or None, if there is no bp
         @rtype Breakpoint object or None
         """
-        return Breakpoint.breaks.get(filename, lineno)
+        return Breakpoint.breaks.get((filename, lineno))
     
     @staticmethod
     def effectiveBreak(filename, lineno, frame):
--- a/DebugClients/Python/DebugClientBase.py	Mon Aug 08 23:08:38 2016 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Thu Sep 15 21:49:13 2016 +0200
@@ -698,7 +698,7 @@
                 line = int(line)
                 enable = int(enable)
                 
-                bp = self.mainThread.get_break(fn, line)
+                bp = Breakpoint.get_break(fn, line)
                 if bp is not None:
                     if enable:
                         bp.enable()
@@ -713,7 +713,7 @@
                 line = int(line)
                 count = int(count)
                 
-                bp = self.mainThread.get_break(fn, line)
+                bp = Breakpoint.get_break(fn, line)
                 if bp is not None:
                     bp.ignore = count
                     
--- a/DebugClients/Python3/BreakpointWatch.py	Mon Aug 08 23:08:38 2016 +0200
+++ b/DebugClients/Python3/BreakpointWatch.py	Thu Sep 15 21:49:13 2016 +0200
@@ -119,7 +119,7 @@
         @return Breakpoint or None, if there is no bp
         @rtype Breakpoint object or None
         """
-        return Breakpoint.breaks.get(filename, lineno)
+        return Breakpoint.breaks.get((filename, lineno))
     
     @staticmethod
     def effectiveBreak(filename, lineno, frame):
--- a/DebugClients/Python3/DebugClientBase.py	Mon Aug 08 23:08:38 2016 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Thu Sep 15 21:49:13 2016 +0200
@@ -705,7 +705,7 @@
                 line = int(line)
                 enable = int(enable)
                 
-                bp = self.mainThread.get_break(fn, line)
+                bp = Breakpoint.get_break(fn, line)
                 if bp is not None:
                     if enable:
                         bp.enable()
@@ -719,7 +719,7 @@
                 line = int(line)
                 count = int(count)
                 
-                bp = self.mainThread.get_break(fn, line)
+                bp = Breakpoint.get_break(fn, line)
                 if bp is not None:
                     bp.ignore = count
                 

eric ide

mercurial