JavaWorld Partners IT Careers Component Guide Product Finder RFP Exchange Training Center White Papers Webcasts Advertisement JavaScript Debugging JavaScript programs A quick reference guide that helps you find errors, even without the aid of a debugging utility Summary Everyone makes mistakes writing JavaScript programs. JavaScript provides error messages as a means to help you spot mistakes. This column describes the errors you are likely to get when writing a JavaScript program and what to do about them. By Gordon McComb hey say that novels are not written, but rewritten. Certainly the same goes for computer programs, including those written in JavaScript.
Bugs are the bane of any programmer, and debugging is part of the program development process.
Unfortunately, client-side JavaScript currently lacks a debugging utility, so finding errors in your script becomes a lesson in deductive reasoning. Debugging a JavaScript program entails using problem-solving techniques that would impress Sherlock Holmes. Effective debugging of JavaScript requires some experience writing programs for it. After a while, you become familiar with the error messages JavaScript displays and learn ways to solve the errors. Of course, you may not have the time to devote yourself to learning all the intricacies of JavaScript.