MCPcopy Index your code
hub / github.com/python/cpython / post_mortem

Function post_mortem

Lib/pdb.py:3510–3521  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

3508# Post-Mortem interface
3509
3510def 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
3524def _post_mortem(t, pdb_instance):

Callers 1

pmFunction · 0.85

Calls 2

_post_mortemFunction · 0.85
PdbClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…