(self)
| 59 | ) |
| 60 | |
| 61 | def _thread_stacks(self) -> str: |
| 62 | id2name = {th.ident: th.name for th in threading.enumerate()} |
| 63 | dumps = "" |
| 64 | for id_, frame in sys._current_frames().items(): |
| 65 | name = id2name.get(id_, "") |
| 66 | dump = "".join(traceback.format_stack(frame)) |
| 67 | dumps += f"# Thread: {name}({id_})\n{dump}\n" |
| 68 | return dumps |
| 69 | |
| 70 | |
| 71 | class Debugger: |
no test coverage detected