MCPcopy Index your code
hub / github.com/RustPython/RustPython / break_anywhere

Method break_anywhere

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

Return True if there is any breakpoint in that frame

(self, frame)

Source from the content-addressed store, hash-verified

487 raise NotImplementedError("subclass of bdb must implement do_clear()")
488
489 def break_anywhere(self, frame):
490 """Return True if there is any breakpoint in that frame
491 """
492 filename = self.canonic(frame.f_code.co_filename)
493 if filename not in self.breaks:
494 return False
495 for lineno in self.breaks[filename]:
496 if self._lineno_in_frame(lineno, frame):
497 return True
498 return False
499
500 def _lineno_in_frame(self, lineno, frame):
501 """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