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

Method get_breaks

Lib/bdb.py:794–802  ·  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

792 lineno in self.breaks[filename]
793
794 def get_breaks(self, filename, lineno):
795 """Return all breakpoints for filename:lineno.
796
797 If no breakpoints are set, return an empty list.
798 """
799 filename = self.canonic(filename)
800 return filename in self.breaks and \
801 lineno in self.breaks[filename] and \
802 Breakpoint.bplist[filename, lineno] or []
803
804 def get_file_breaks(self, filename):
805 """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