On this page
  1. pdb.post_mortem
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from pdb import post_mortem
help(post_mortem)

Linked from

Related notes