MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_breaks

Method get_breaks

tools/python-3.11.9-amd64/Lib/bdb.py:500–508  ·  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

498 lineno in self.breaks[filename]
499
500 def get_breaks(self, filename, lineno):
501 """Return all breakpoints for filename:lineno.
502
503 If no breakpoints are set, return an empty list.
504 """
505 filename = self.canonic(filename)
506 return filename in self.breaks and \
507 lineno in self.breaks[filename] and \
508 Breakpoint.bplist[filename, lineno] or []
509
510 def get_file_breaks(self, filename):
511 """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