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

Function stack_cursor

memory_graph/__init__.py:315–319  ·  view source on GitHub ↗

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

(begin_functions=[("_line_event",1), ("_return_event",1), ("do_wait_suspend",1), ("_do_wait_suspend",2)],
                 end_functions=["<module>"],
                 stack_index=0)

Source from the content-addressed store, hash-verified

313 return stack_slice(begin_functions, end_functions, stack_index)
314
315def stack_cursor(begin_functions=[("_line_event",1), ("_return_event",1), ("do_wait_suspend",1), ("_do_wait_suspend",2)],
316 end_functions=["<module>"],
317 stack_index=0):
318 """ Get the call stack in a 'cursor' debugger session, filtering out the 'cursor' functions that polute the graph. """
319 return stack_slice(begin_functions, end_functions, stack_index)
320
321def stack_pycharm(begin_functions=[("py_line_callback",1), ("py_return_callback",1), ("do_wait_suspend",2)],
322 end_functions=["<module>"],

Callers 1

cursorFunction · 0.85

Calls 1

stack_sliceFunction · 0.85

Tested by

no test coverage detected