On this page
pdb.post_mortem
Prev: pdb.pm | Up: pdb | Next: pdb.run
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.pm
Ref: docs.python.org — pdb.post_mortem
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import post_mortem
Signature & Overview
pdb.post_mortem(t=None)
Enter post-mortem debugging of the given traceback, or exception object.
Usage
import pdb
# Enters interactive debugger at the traceback of a caught exception:
# except Exception: pdb.post_mortem()
assert callable(pdb.post_mortem)
Gotchas
- Interactive: Great inside
except:during local debugging; never leave active in production servers.
REPL Inspect
from pdb import post_mortem
help(post_mortem)
Linked from
Related notes
- tuts/python3/stdlib_module/pdb/get_default_backend Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/help Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/Pdb Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/pm Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/run Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/pdb/runcall shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runctx shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runeval shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend shared tags: #pdb, #stdlib