your favorite debugging tool?
Ben Finney
ben+python at benfinney.id.au
Sat Aug 22 21:27:25 EDT 2009
Esmail <ebonak at hotmail.com> writes:
> What is your favorite tool to help you debug your code?
A “print” statement (or equivalent, like logging output).
> I've been getting along with 'print' statements but that is getting
> old and somewhat cumbersome.
Whenever a simple output statement is too cumbersome for debugging, I
take it as a sign that the program is too cumbersome to follow.
My debugging questions at that point are best taken to the unit test
suite: record the questions and the expected answers, so that in the
future anyone can get the benefit of them in a repeatable and automated
fashion.
--
\ “The power of accurate observation is frequently called |
`\ cynicism by those who don't have it.” —George Bernard Shaw |
_o__) |
Ben Finney
More information about the Python-list
mailing list