Get the call stack at the point 'exception' was thrown.
(exception, stack_index=0)
| 292 | return stack_slice([], end_functions, stack_index+2) |
| 293 | |
| 294 | def stack_exception(exception, stack_index=0): |
| 295 | """ Get the call stack at the point 'exception' was thrown. """ |
| 296 | tb = exception.__traceback__ |
| 297 | frame_infos = [] |
| 298 | while tb is not None: |
| 299 | frame_infos.append(types.SimpleNamespace(frame=tb.tb_frame)) |
| 300 | tb = tb.tb_next |
| 301 | return stack_frames_to_dict(frame_infos[stack_index:]) |
| 302 | |
| 303 | def stack_pdb(begin_functions=[("trace_dispatch",1)], |
| 304 | end_functions=["<module>"], |
nothing calls this directly
no test coverage detected