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

Function stack_wing

memory_graph/__init__.py:327–331  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

325 return stack_slice(begin_functions, end_functions, stack_index)
326
327def stack_wing(begin_functions=[("_py_line_event",1), ("_py_return_event",1)],
328 end_functions=["<module>"],
329 stack_index=0):
330 """ Get the call stack in a 'wing' debugger session, filtering out the 'wing' functions that polute the graph. """
331 return stack_slice(begin_functions, end_functions, stack_index)
332
333
334banned_vscode_jupyter_strings = ['pydevd', 'debugpy', 'ipython', 'ipykernel', 'asyncio', 'tornado', 'traitlets', 'runpy']

Callers 1

wingFunction · 0.85

Calls 1

stack_sliceFunction · 0.85

Tested by

no test coverage detected