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

Function stack_vscode

memory_graph/__init__.py:309–313  ·  view source on GitHub ↗

Get the call stack in a 'vscode' debugger session, filtering out the 'vscode' 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

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>"],
311 stack_index=0):
312 """ Get the call stack in a 'vscode' debugger session, filtering out the 'vscode' functions that polute the graph. """
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>"],

Callers 1

vscodeFunction · 0.85

Calls 1

stack_sliceFunction · 0.85

Tested by

no test coverage detected