On this page
pdb.pm
Prev: pdb.Pdb | Up: pdb | Next: pdb.post_mortem
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.post_mortem
Ref: docs.python.org — pdb.pm
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import pm
Signature & Overview
pdb.pm()
Enter post-mortem debugging of the traceback found in sys.last_exc.
Usage
import pdb
# Enters post-mortem debugging on sys.last_traceback in an interactive REPL
assert callable(pdb.pm)
Gotchas
- REPL-only shortcut: Inside scripts or
except:blocks, callpdb.post_mortem()instead.
REPL Inspect
from pdb import pm
help(pm)
Linked from
- tuts/python3/stdlib_module/pdb
- tuts/python3/stdlib_module/pdb/get_default_backend
- tuts/python3/stdlib_module/pdb/help
- tuts/python3/stdlib_module/pdb/Pdb
- tuts/python3/stdlib_module/pdb/post_mortem
- tuts/python3/stdlib_module/pdb/run
- tuts/python3/stdlib_module/pdb/runcall
- tuts/python3/stdlib_module/pdb/runctx
- tuts/python3/stdlib_module/pdb/runeval
- tuts/python3/stdlib_module/pdb/set_default_backend
- tuts/python3/stdlib_module/pdb/set_trace
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/post_mortem Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/run links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runcall links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runctx links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runeval links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_trace links to this page; shared tags: #pdb, #stdlib