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

Method clear_all_file_breaks

Lib/bdb.py:740–753  ·  view source on GitHub ↗

Delete all breakpoints in filename. If none were set, return an error message.

(self, filename)

Source from the content-addressed store, hash-verified

738 return None
739
740 def clear_all_file_breaks(self, filename):
741 """Delete all breakpoints in filename.
742
743 If none were set, return an error message.
744 """
745 filename = self.canonic(filename)
746 if filename not in self.breaks:
747 return 'There are no breakpoints in %s' % filename
748 for line in self.breaks[filename]:
749 blist = Breakpoint.bplist[filename, line]
750 for bp in blist:
751 bp.deleteMe()
752 del self.breaks[filename]
753 return None
754
755 def clear_all_breaks(self):
756 """Delete all existing breakpoints.

Callers

nothing calls this directly

Calls 2

canonicMethod · 0.95
deleteMeMethod · 0.80

Tested by

no test coverage detected