Esmail <ebo...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to