pudb: a simple and intuitive debugger
You want to debug a Python source file. You have heard about pdb, but in the good old days you used Borland Pascal, Borland C, and you want something similar.
If you develop in the konsole, you must try pudb. “PuDB is a full-screen, console-based visual debugger for Python. Its goal is to provide all the niceties of modern GUI-based debuggers in a more lightweight and keyboard-friendly package. PuDB allows you to debug code right where you write and test it–in a terminal. If you’ve worked with the excellent (but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB’s UI might look familiar.” (source)
- pudb HQ (@pypi)
- PuDB, a better Python debugger (Part 1)
- Hacking PuDB: Now an even better Python debugger (Part 2)
- Introduction to the PuDB Python Debugging Tool (by Prof. Norm Matloff )
For more alternatives, see this discussion about debugging (on reddit).
Add this line to your
alias pudb='python -m pudb'
Then you can start debugging with pudb like this:
$ pudb problem.py