eric6/DebugClients/Python/BreakpointWatch.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7639
422fd05e9c91
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
160 else: 160 else:
161 # Conditional bp. 161 # Conditional bp.
162 # Ignore count applies only to those bpt hits where the 162 # Ignore count applies only to those bpt hits where the
163 # condition evaluates to true. 163 # condition evaluates to true.
164 try: 164 try:
165 val = eval(b.cond, frame.f_globals, frame.f_locals) 165 val = eval(b.cond, frame.f_globals, frame.f_locals) # secok
166 if val: 166 if val:
167 if b.ignore > 0: 167 if b.ignore > 0:
168 b.ignore -= 1 168 b.ignore -= 1
169 # continue 169 # continue
170 else: 170 else:
293 for b in Watch.watches: 293 for b in Watch.watches:
294 if not b.enabled: 294 if not b.enabled:
295 continue 295 continue
296 try: 296 try:
297 val = eval(b.compiledCond, frame.f_globals, frame.f_locals) 297 val = eval(b.compiledCond, frame.f_globals, frame.f_locals)
298 # secok
298 if b.created: 299 if b.created:
299 if frame in b.values: 300 if frame in b.values:
300 continue 301 continue
301 else: 302 else:
302 b.values[frame] = [1, val, b.ignore] 303 b.values[frame] = [1, val, b.ignore]
321 if b.ignore > 0: 322 if b.ignore > 0:
322 b.ignore -= 1 323 b.ignore -= 1
323 continue 324 continue
324 else: 325 else:
325 return (b, True) 326 return (b, True)
326 except Exception: 327 except Exception: # secok
327 continue 328 continue
328 return (None, False) 329 return (None, False)
329 330
330 331
331 # 332 #

eric ide

mercurial