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)
| 307 | return stack_slice(begin_functions, end_functions, stack_index) |
| 308 | |
| 309 | def 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 | |
| 315 | def stack_cursor(begin_functions=[("_line_event",1), ("_return_event",1), ("do_wait_suspend",1), ("_do_wait_suspend",2)], |
| 316 | end_functions=["<module>"], |