Tuesday, June 02, 2009

Debugging JavaScript: Beyond Alerts

Debugging JavaScript: Beyond Alerts: "There was a time when debugging JavaScript required a liberal sprinkling of alert messages. Sometimes, just figuring out which line caused the error was an ordeal. Not so anymore. As JavaScript became more and more object oriented and grew in scope, a simple alert box no longer sufficed. Ajax, in particular, created a major impediment to debugging scripts, as its asynchronous nature introduced a multi-threading aspect to the language. One try at debugging a chat application that uses periodic polling will attest to that fact! As part of multi-tiered applications, scripts can be written, debugged, and even tested using frameworks' built-in functionality or by specialized software. In today's article, we'll begin examining some of the latest ways of debugging your JavaScript code."