diff -r 9f4e3914e50c -r 4c896f626bd6 DebugClients/Python/BreakpointWatch.py --- 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.