MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / request_stack

Method request_stack

_pydevd_bundle/pydevd_api.py:231–239  ·  view source on GitHub ↗
(self, py_db, seq, thread_id, fmt=None, timeout=0.5, start_frame=0, levels=0)

Source from the content-addressed store, hash-verified

229 )
230
231 def request_stack(self, py_db, seq, thread_id, fmt=None, timeout=0.5, start_frame=0, levels=0):
232 # If it's already suspended, get it right away.
233 internal_get_thread_stack = InternalGetThreadStack(
234 seq, thread_id, py_db, set_additional_thread_info, fmt=fmt, timeout=timeout, start_frame=start_frame, levels=levels
235 )
236 if internal_get_thread_stack.can_be_executed_by(get_current_thread_id(threading.current_thread())):
237 internal_get_thread_stack.do_it(py_db)
238 else:
239 py_db.post_internal_command(internal_get_thread_stack, "*")
240
241 def request_exception_info_json(self, py_db, request, thread_id, thread, max_frames):
242 py_db.post_method_as_internal_command(

Callers 2

cmd_get_thread_stackMethod · 0.80
on_stacktrace_requestMethod · 0.80

Calls 5

can_be_executed_byMethod · 0.95
do_itMethod · 0.95
get_current_thread_idFunction · 0.90
post_internal_commandMethod · 0.80

Tested by

no test coverage detected