Debugging

Fulvio fulvio at tm.net.my
Sat Oct 21 16:25:09 CEST 2006


***********************
Your mail has been scanned by InterScan MSS.
***********************


On Saturday 21 October 2006 19:40, Gregor Horvath wrote:

> Small snippets of code are developed in the interpreter and when they
> are working assembled in the editor. If something goes wrong a print on
> the suspect place or the traceback is all I need. (of course this is
> matter of taste)

I also using this techinque, but I found myself to do a lot of rewriting on 
the code, as long as probing several points on the program.
The pdb.py is much of what I need. Running the program can stop in critical 
points and see if all comes as expected. It won't need to remove 
several "print" from the code.
Obvious, it's referred for programs which aren't time critical.

F




More information about the Python-list mailing list