your favorite debugging tool?

Michiel Overtoom motoom at xs4all.nl
Sun Aug 23 09:05:51 EDT 2009


Esmail wrote:

> What is your favorite tool to help you debug your
> code? 

import pdb
pdb.set_trace()

pdb has commands to inspect code, variables, set breakpoints, watches, 
walk up and down stack frames, single-step through the program, run the 
rest of the function, run until return, etc...

http://www.ferg.org/papers/debugging_in_python.html

http://onlamp.com/pub/a/python/2005/09/01/debugger.html

http://plone.org/documentation/how-to/using-pdb

http://docs.python.org/library/pdb.html

Greetings,

-- 
"The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is simply amazing." - Vinod Valloppillil
http://www.catb.org/~esr/halloween/halloween4.html



More information about the Python-list mailing list