Steve Ferg has written a nice tutorial for beginners on how to debug python code using the pdb module:

http://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/



    7           8