How Do I Debug A Python Script?

Alex alex at somewhere.round.here
Thu Mar 9 01:31:09 CET 2000


> I have a script that is not doing what I want, how do I step throught
> it?

Use the pdb module:

import pdb

pdb.set_trace()

Check out http://www.python.org/doc/current/lib/module-pdb.html

Alex.



More information about the Python-list mailing list