Tuesday, February 24, 2004 5:05 PM
by
scottno
slashdot on debugging
David J. Agans' Debugging was just reviewed over on Slashdot. The book has nine debugging “rules“:
- Understand the system
- Make it fail
- Quit thinking and look
- Divide and conquer
- Change one thing at a time
- Keep an audit trail
- Check the plug
- Get a fresh view
- If you didn't fix it, it ain't fixed
Three and five are rules most people have in the back of their heads but don't follow most of the time. Six is a great suggestion most people have probably never considered. But by far, of course, the most important of all these is number one: Understand the system. Without that you've got nothing. :0)
What's your most useful debugging technique/insight?
Here's a great snippet from the comments: “Teaching people how to debug isn't that easy. It requires some experience before they get the hang of it.” (pcraven)