PyDocs

Nav

Debugging and profiling

post_mortem

pdb

function (source)
  • post_mortem(t=None)
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 `exceptions` command makes it possible to
list and inspect its chained exceptions (if any).
Changed in 3.13
  • 3.13: Support for exception objects was added.
0 Examples
No examples for pdb/post_mortem.
See Also
No see-alsos for pdb/post_mortem
0 Notes
No notes for post_mortem