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

Function after_breakpoints_consolidated

pydevd_plugins/django_debug.py:112–125  ·  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

110
111
112def after_breakpoints_consolidated(py_db, canonical_normalized_filename, id_to_pybreakpoint, file_to_line_to_breakpoints):
113 if IS_DJANGO19_OR_HIGHER:
114 django_breakpoints_for_file = file_to_line_to_breakpoints.get(canonical_normalized_filename)
115 if not django_breakpoints_for_file:
116 return
117
118 if not hasattr(py_db, "django_validation_info"):
119 _init_plugin_breaks(py_db)
120
121 # In general we validate the breakpoints only when the template is loaded, but if the template
122 # was already loaded, we can validate the breakpoints based on the last loaded value.
123 py_db.django_validation_info.verify_breakpoints_from_template_cached_lines(
124 py_db, canonical_normalized_filename, django_breakpoints_for_file
125 )
126
127
128def 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