PDA

View Full Version : python debugging question


krypto_wizard
March 8th, 2006, 04:55 PM
I am a python newbie. I have writen some 500 lines of code. There are 4 classes and in all 5 files.

Now, I am trying to run the program. I am getting wrong values for the simulation results.
Is there any debugging facilities in python which would let me go step by step and check the values of the variables at every step. I have done something like this in MS Visual Stdio 6.0 sometime back.

For pytho, I am using SPE.

Every help is appreciated.

Thanks

thumper
March 8th, 2006, 04:59 PM
How do you know that they are wrong?

Yes SPE does integrate the dubugger, but I have not used it.

Perhaps Stani is watching?

krypto_wizard
March 8th, 2006, 05:13 PM
In my simlation there 1024 nodes and I am mimicking a bittorrent file exhange process. Some nodes are not getting any file pieces, so it means that my program is erroneous.

what is a good way of debugging such large and iterative programs ? Any tips.




How do you know that they are wrong?

Yes SPE does integrate the dubugger, but I have not used it.

Perhaps Stani is watching?

stani
March 22nd, 2006, 06:31 PM
Perhaps Stani is watching?
Yep!

I've you want a nice introduction to winpdb debugger which ships with SPE, watch this: http://www.showmedo.com/videoListPage?listKey=PythonDevelopmentWithSPE