Posts Tagged ‘pudb’

pudb: a simple and intuitive debugger

August 5, 2013 Leave a comment

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)


For more alternatives, see this discussion about debugging (on reddit).

Usage tip
Add this line to your ~/.bashrc file:

alias pudb='python -m pudb'

Then you can start debugging with pudb like this:

$ pudb
Categories: python Tags: ,