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

Function _get_stack_str

pydevd_tracing.py:42–55  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

40
41
42def _get_stack_str(frame):
43 msg = (
44 "\nIf this is needed, please check: "
45 + "\nhttp://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html"
46 + "\nto see how to restore the debug tracing back correctly.\n"
47 )
48
49 if TracingFunctionHolder._traceback_limit:
50 s = StringIO()
51 s.write("Call Location:\n")
52 traceback.print_stack(f=frame, limit=TracingFunctionHolder._traceback_limit, file=s)
53 msg = msg + s.getvalue()
54
55 return msg
56
57
58def _internal_set_trace(tracing_func):

Callers 1

_internal_set_traceFunction · 0.85

Calls 2

getvalueMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected