10 Debugging

Debugging: The act of being the detective in the crime movie where you are also the murderer.

Recall... testing reveals a falut in a program, and debugging reveals the cause of that fault. Debugging takes mroe time than programming, so try to get it right the first time.

Some advice: follow the scientific method

If you get flummoxed

Defensive programming

Q. Isn't this expensive? A. No! It only seems like that.