[Pudb] Debugging pudb with itself

Yu-Jie Lin livibetter at gmail.com
Tue Aug 9 05:44:00 PDT 2011


> That's a good idea.  So far I've been "printing" things to the
> terminal by raising exceptions with the stuff I want in the error
> message, but this kills the program and is hard to control.

I do this:

  [some vars here need to be checked]
  import sys
  print >>sys.stderr, stuff...

and run pudb with

  python -m pudb.run script.py 2>debug.log

and tail in another terminal

  tail -F debug.log

This is only way I know work better for debugging pudb. I even have a
tmux conf to set up for this task.


Yu-Jie Lin



More information about the Pudb mailing list