How Do I Debug A Python Script?

Alex alex at somewhere.round.here
Wed Mar 8 19:31:09 EST 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