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

Function _is_django_resolve_call

pydevd_plugins/django_debug.py:224–239  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

222
223
224def _is_django_resolve_call(frame):
225 try:
226 name = frame.f_code.co_name
227 if name != "_resolve_lookup":
228 return False
229
230 if "self" not in frame.f_locals:
231 return False
232
233 cls = frame.f_locals["self"].__class__
234
235 clsname = cls.__name__
236 return clsname == "Variable"
237 except:
238 pydev_log.exception()
239 return False
240
241
242def _is_django_suspended(thread):

Callers 2

cmd_step_intoFunction · 0.85
cmd_step_overFunction · 0.85

Calls 1

exceptionMethod · 0.80

Tested by

no test coverage detected