Home > python > pudb: a simple and intuitive debugger

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)


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 problem.py
Categories: python Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: