DebugClients/Python3/BreakpointWatch.py

branch
debugger speed
changeset 5081
4c896f626bd6
parent 5061
753f720c2a48
child 5170
fb9168c2e069
diff -r 9f4e3914e50c -r 4c896f626bd6 DebugClients/Python3/BreakpointWatch.py
--- a/DebugClients/Python3/BreakpointWatch.py	Sun Jul 24 21:34:54 2016 +0200
+++ b/DebugClients/Python3/BreakpointWatch.py	Wed Aug 03 21:41:40 2016 +0200
@@ -96,6 +96,15 @@
         Breakpoint.breakInFrameCache.clear()
     
     @staticmethod
+    def clear_all_breaks():
+        """
+        Public method to clear all breakpoints.
+        """
+        for bp in Breakpoint.breaks.copy():
+            bp.deleteMe()
+        Breakpoint.breakInFrameCache.clear()
+
+    @staticmethod
     def get_break(filename, lineno):
         """
         Public method to get the breakpoint of a particular line.
@@ -250,6 +259,13 @@
             pass
 
     @staticmethod
+    def clear_all_watches():
+        """
+        Public method to clear all watch expressions.
+        """
+        del Watch.watches[:]
+
+    @staticmethod
     def get_watch(cond):
         """
         Public method to get a watch expression.

eric ide

mercurial