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

Function after_breakpoints_consolidated

pydevd_plugins/jinja2_debug.py:70–82  ·  view source on GitHub ↗
(py_db, canonical_normalized_filename, id_to_pybreakpoint, file_to_line_to_breakpoints)

Source from the content-addressed store, hash-verified

68
69
70def after_breakpoints_consolidated(py_db, canonical_normalized_filename, id_to_pybreakpoint, file_to_line_to_breakpoints):
71 jinja2_breakpoints_for_file = file_to_line_to_breakpoints.get(canonical_normalized_filename)
72 if not jinja2_breakpoints_for_file:
73 return
74
75 if not hasattr(py_db, "jinja2_validation_info"):
76 _init_plugin_breaks(py_db)
77
78 # In general we validate the breakpoints only when the template is loaded, but if the template
79 # was already loaded, we can validate the breakpoints based on the last loaded value.
80 py_db.jinja2_validation_info.verify_breakpoints_from_template_cached_lines(
81 py_db, canonical_normalized_filename, jinja2_breakpoints_for_file
82 )
83
84
85def add_exception_breakpoint(pydb, type, exception):

Callers

nothing calls this directly

Calls 3

_init_plugin_breaksFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected