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

Method _load_breaks

tools/python-3.11.9-amd64/Lib/bdb.py:392–401  ·  view source on GitHub ↗

Apply all breakpoints (set in other instances) to this one. Populates this instance's breaks list from the Breakpoint class's list, which can have breakpoints set by another Bdb instance. This is necessary for interactive sessions to keep the breakpoints active

(self)

Source from the content-addressed store, hash-verified

390 return None
391
392 def _load_breaks(self):
393 """Apply all breakpoints (set in other instances) to this one.
394
395 Populates this instance's breaks list from the Breakpoint class's
396 list, which can have breakpoints set by another Bdb instance. This
397 is necessary for interactive sessions to keep the breakpoints
398 active across multiple calls to run().
399 """
400 for (filename, lineno) in Breakpoint.bplist.keys():
401 self._add_to_breaks(filename, lineno)
402
403 def _prune_breaks(self, filename, lineno):
404 """Prune breakpoints for filename:lineno.

Callers 1

__init__Method · 0.95

Calls 2

_add_to_breaksMethod · 0.95
keysMethod · 0.45

Tested by

no test coverage detected