Enter post-mortem debugging of the given *traceback*, or *exception* object. If no traceback is given, it uses the one of the exception that is currently being handled (an exception must be being handled if the default is to be used). If `t` is an exception object, the `excepti
(t=None)
| 3508 | # Post-Mortem interface |
| 3509 | |
| 3510 | def post_mortem(t=None): |
| 3511 | """Enter post-mortem debugging of the given *traceback*, or *exception* |
| 3512 | object. |
| 3513 | |
| 3514 | If no traceback is given, it uses the one of the exception that is |
| 3515 | currently being handled (an exception must be being handled if the |
| 3516 | default is to be used). |
| 3517 | |
| 3518 | If `t` is an exception object, the `exceptions` command makes it possible to |
| 3519 | list and inspect its chained exceptions (if any). |
| 3520 | """ |
| 3521 | return _post_mortem(t, Pdb()) |
| 3522 | |
| 3523 | |
| 3524 | def _post_mortem(t, pdb_instance): |
no test coverage detected
searching dependent graphs…