Chapter 6. Troubleshooting, Debugging, and Cross-Browser Issues
Simple Ways to Debug
Long-time programmers may sneer at the approach, but one of the simplest debugging methods is to use some form of output functionality to check the values of variables after processing. Though more sophisticated debugging tools are available, this still is a simple way to check out the state and value of a variable during application processing.