> Funny, when I tell Fox Folk that I do most of my debugging in Python > by adding 'print' statements in critical places, they look at me as > though I was advocating going back to punched cards. Glad to hear > that someone else appreciates this technique! > > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com >
For most of my career I have sprinkled 'print/display' statements throughout my code to trace where it is going. Sometimes I would just display on the screen; other times print on paper. When I used to work in Fortran before IDEs were invented, it was the only way to go. Even with IDEs it was cumbersome to set up breakpoints, list variables to look at and then attempt to trace run-time behavior. It was especially difficult when large loops had to be debugged and you missed a branch and had to do it over. One technique was to output print statements to the screen and as they flew by I could see variables changing and then hit a pause button to change output to the printer. Very effective. I just kept using traces when I went to Foxpro because I was used to it. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

