DebugClients/Python/BreakpointWatch.py

branch
debugger speed
changeset 5081
4c896f626bd6
parent 5061
753f720c2a48
child 5170
fb9168c2e069
--- a/DebugClients/Python/BreakpointWatch.py	Sun Jul 24 21:34:54 2016 +0200
+++ b/DebugClients/Python/BreakpointWatch.py	Wed Aug 03 21:41:40 2016 +0200
@@ -94,7 +94,16 @@
         if bp:
             bp.deleteMe()
         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):
         """
@@ -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