MCPcopy Index your code
hub / github.com/python/cpython / break_anywhere

Method break_anywhere

Lib/bdb.py:480–489  ·  view source on GitHub ↗

Return True if there is any breakpoint in that frame

(self, frame)

Source from the content-addressed store, hash-verified

478 raise NotImplementedError("subclass of bdb must implement do_clear()")
479
480 def break_anywhere(self, frame):
481 """Return True if there is any breakpoint in that frame
482 """
483 filename = self.canonic(frame.f_code.co_filename)
484 if filename not in self.breaks:
485 return False
486 for lineno in self.breaks[filename]:
487 if self._lineno_in_frame(lineno, frame):
488 return True
489 return False
490
491 def _lineno_in_frame(self, lineno, frame):
492 """Return True if the line number is in the frame's code object.

Callers 2

dispatch_callMethod · 0.95
set_breakMethod · 0.95

Calls 2

canonicMethod · 0.95
_lineno_in_frameMethod · 0.95

Tested by

no test coverage detected