MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / reapply_breakpoints

Method reapply_breakpoints

_pydevd_bundle/pydevd_api.py:635–645  ·  view source on GitHub ↗

Reapplies all the received breakpoints as they were received by the API (so, new translations are applied).

(self, py_db)

Source from the content-addressed store, hash-verified

633 return result
634
635 def reapply_breakpoints(self, py_db):
636 """
637 Reapplies all the received breakpoints as they were received by the API (so, new
638 translations are applied).
639 """
640 pydev_log.debug("Reapplying breakpoints.")
641 values = list(py_db.api_received_breakpoints.values()) # Create a copy with items to reapply.
642 self.remove_all_breakpoints(py_db, "*")
643 for val in values:
644 _new_filename, api_add_breakpoint_params = val
645 self.add_breakpoint(py_db, *api_add_breakpoint_params)
646
647 def remove_all_breakpoints(self, py_db, received_filename):
648 """

Callers 1

set_source_mappingMethod · 0.95

Calls 3

add_breakpointMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected