DebugClients/Python3/BreakpointWatch.py

branch
debugger speed
changeset 5081
4c896f626bd6
parent 5061
753f720c2a48
child 5170
fb9168c2e069
equal deleted inserted replaced
5064:9f4e3914e50c 5081:4c896f626bd6
93 bp = Breakpoint.breaks.get((filename, lineno)) 93 bp = Breakpoint.breaks.get((filename, lineno))
94 if bp: 94 if bp:
95 bp.deleteMe() 95 bp.deleteMe()
96 Breakpoint.breakInFrameCache.clear() 96 Breakpoint.breakInFrameCache.clear()
97 97
98 @staticmethod
99 def clear_all_breaks():
100 """
101 Public method to clear all breakpoints.
102 """
103 for bp in Breakpoint.breaks.copy():
104 bp.deleteMe()
105 Breakpoint.breakInFrameCache.clear()
106
98 @staticmethod 107 @staticmethod
99 def get_break(filename, lineno): 108 def get_break(filename, lineno):
100 """ 109 """
101 Public method to get the breakpoint of a particular line. 110 Public method to get the breakpoint of a particular line.
102 111
246 """ 255 """
247 try: 256 try:
248 Watch.watches.remove(Watch.get_watch(cond)) 257 Watch.watches.remove(Watch.get_watch(cond))
249 except ValueError: 258 except ValueError:
250 pass 259 pass
260
261 @staticmethod
262 def clear_all_watches():
263 """
264 Public method to clear all watch expressions.
265 """
266 del Watch.watches[:]
251 267
252 @staticmethod 268 @staticmethod
253 def get_watch(cond): 269 def get_watch(cond):
254 """ 270 """
255 Public method to get a watch expression. 271 Public method to get a watch expression.

eric ide

mercurial