MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / stack_pdb

Function stack_pdb

memory_graph/__init__.py:303–307  ·  view source on GitHub ↗

Get the call stack in a 'pdb' debugger session, filtering out the 'pdb' functions that polute the graph.

(begin_functions=[("trace_dispatch",1)],
              end_functions=["<module>"],
              stack_index=0)

Source from the content-addressed store, hash-verified

301 return stack_frames_to_dict(frame_infos[stack_index:])
302
303def stack_pdb(begin_functions=[("trace_dispatch",1)],
304 end_functions=["<module>"],
305 stack_index=0):
306 """ Get the call stack in a 'pdb' debugger session, filtering out the 'pdb' functions that polute the graph. """
307 return stack_slice(begin_functions, end_functions, stack_index)
308
309def stack_vscode(begin_functions=[("_line_event",1), ("_return_event",1), ("do_wait_suspend",1), ("_do_wait_suspend",2)],
310 end_functions=["<module>"],

Callers

nothing calls this directly

Calls 1

stack_sliceFunction · 0.85

Tested by

no test coverage detected