Python Debugger

It's possible to use both pdb or ipdb (pdb with ipython support!).

Interaction mode

During code execution:

import pdb; pdb.set_trace()

The main commands here are (see help for more suggestions):


$ python -m pdb


   1 >>> import pdb
   2 >>> import script
   3 >>>'script.divide(10, 5)')

Web references

MyWiki: Python/debug (last edited 2018-08-09 22:05:05 by risca)