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

Function add_line_breakpoint

pydevd_plugins/django_debug.py:73–109  ·  view source on GitHub ↗
(
    pydb,
    type,
    canonical_normalized_filename,
    breakpoint_id,
    line,
    condition,
    expression,
    func_name,
    hit_condition=None,
    is_logpoint=False,
    add_breakpoint_result=None,
    on_changed_breakpoint_state=None,
)

Source from the content-addressed store, hash-verified

71
72
73def add_line_breakpoint(
74 pydb,
75 type,
76 canonical_normalized_filename,
77 breakpoint_id,
78 line,
79 condition,
80 expression,
81 func_name,
82 hit_condition=None,
83 is_logpoint=False,
84 add_breakpoint_result=None,
85 on_changed_breakpoint_state=None,
86):
87 if type == "django-line":
88 django_line_breakpoint = DjangoLineBreakpoint(
89 canonical_normalized_filename,
90 breakpoint_id,
91 line,
92 condition,
93 func_name,
94 expression,
95 hit_condition=hit_condition,
96 is_logpoint=is_logpoint,
97 )
98 if not hasattr(pydb, "django_breakpoints"):
99 _init_plugin_breaks(pydb)
100
101 if IS_DJANGO19_OR_HIGHER:
102 add_breakpoint_result.error_code = PyDevdAPI.ADD_BREAKPOINT_LAZY_VALIDATION
103 django_line_breakpoint.add_breakpoint_result = add_breakpoint_result
104 django_line_breakpoint.on_changed_breakpoint_state = on_changed_breakpoint_state
105 else:
106 add_breakpoint_result.error_code = PyDevdAPI.ADD_BREAKPOINT_NO_ERROR
107
108 return django_line_breakpoint, pydb.django_breakpoints
109 return None
110
111
112def after_breakpoints_consolidated(py_db, canonical_normalized_filename, id_to_pybreakpoint, file_to_line_to_breakpoints):

Callers

nothing calls this directly

Calls 2

_init_plugin_breaksFunction · 0.70

Tested by

no test coverage detected