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

Method get_breaks

Lib/bdb.py:803–811  ·  view source on GitHub ↗

Return all breakpoints for filename:lineno. If no breakpoints are set, return an empty list.

(self, filename, lineno)

Source from the content-addressed store, hash-verified

801 lineno in self.breaks[filename]
802
803 def get_breaks(self, filename, lineno):
804 """Return all breakpoints for filename:lineno.
805
806 If no breakpoints are set, return an empty list.
807 """
808 filename = self.canonic(filename)
809 return filename in self.breaks and \
810 lineno in self.breaks[filename] and \
811 Breakpoint.bplist[filename, lineno] or []
812
813 def get_file_breaks(self, filename):
814 """Return all lines with breakpoints for filename.

Callers 2

do_breakMethod · 0.80
do_clearMethod · 0.80

Calls 1

canonicMethod · 0.95

Tested by

no test coverage detected