Chapter 4. Common Mistakes, Debugging, and Error Handling
Then you'll look at how you can cope with errors when they do happen, so that you prevent users from seeing your coding mistakes.
Finally, you'll look at the debugging tools in Microsoft's Internet Explorer (IE8), Firebug (an add-on for Firefox), Safari's and Chrome's Web Inspector, and Opera's Dragonfly. You'll see how you can use these tools to step through your code and check the contents of variables while the code is running, a process that enables us to hunt for difficult bugs. You'll also take a briefer look at the debugging tools available for Firefox.
D'oh! I Can't Believe I Just Did That: Some Common Mistakes
There are seven common mistakes made by programmers. Some of these you'll learn to avoid as you become more experienced, but others may haunt you forever!
You'll find it very useful in this chapter if your browser is set ...