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):



Otherwise:

$ python -m pdb looping.py

Or

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

Web references

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