PyDocs

Nav

Debugging and profiling

pm

pdb

function (source)
  • pm()
Enter post-mortem debugging of the traceback found in sys.last_exc.
1 Example
>>> import pdb
>>> def f(x):
...     print(1 / x)
...
>>> f(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in f
ZeroDivisionError: division by zero
>>> pdb.pm()
> <stdin>(2)f()
(Pdb) p x
0
(Pdb)
from the Python docs
See Also
No see-alsos for pdb/pm
0 Notes
No notes for pm