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

Function _is_jinja2_render_call

pydevd_plugins/jinja2_debug.py:124–132  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

122
123
124def _is_jinja2_render_call(frame):
125 try:
126 name = frame.f_code.co_name
127 if "__jinja_template__" in frame.f_globals and name in ("root", "loop", "macro") or name.startswith("block_"):
128 return True
129 return False
130 except:
131 pydev_log.exception()
132 return False
133
134
135def _suspend_jinja2(pydb, thread, frame, cmd=CMD_SET_BREAK, message=None):

Callers 5

can_skipFunction · 0.85
cmd_step_intoFunction · 0.85
cmd_step_overFunction · 0.85
get_breakpointFunction · 0.85

Calls 1

exceptionMethod · 0.80

Tested by

no test coverage detected