O'Reilly logo
  • Eihab Hala thinks this is interesting:

Tips for Debugging

1. Do not use a “debugger.” A debugger is like doing a full-body scan on a sick person. You do not get any specific useful information, and you find a whole lot of information that doesn’t help and is just confusing.

2. The best way to debug a program is to use print to print out the values of variables at points in the program to see where they go wrong.

3. Make sure parts of your programs work as you work on them. Do not write massive files of code before you try to run them. Code a little...