> I was going through the Python library documentation and I found
> something I never saw before.
> 
> $ python -m pdb myscript.py

I was just about to suggest loading pdb...

And of course there is also a graphical debugger in IDLE as 
well as PythonWin.

The paper version of my book contains a chapter 
(not on the web site) on how to use pdb to debug a script.
pdb has its limitations but if you are used to gdb then its 
not too bad.

(pdb) help

is your friend.

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to