The odd bit

Once is an accident, twice is a coincidence, three times is an enemy action.

The odd bit - Once is an accident, twice is a coincidence, three times is an enemy action.

Firebug

A new star in the Firefox 1.5 universe is born: Firebug. The author, Joe Hewitt, describes it as “a combination of the Javascript Console, DOM Inspector, and a command line Javascript interpreter“.

Using a simple Javascript function, you can dump whatever you want in its console. It’ll warn you about Javascript errors, CSS errors,… And if you spot an error, just click on the line number given and you’ll jump straight to that specific line in the source. Another plus: the console is per webpage unlike the standard JS console.

The list of features goes on and on so I suggest you check it out yourself. However, I’d like to mention one more nifty tool: XmlHttpRequest spy. Firebug can be used to monitor requests made with an XmlHttpRequest object (read: debug AJAX calls).

Happy debugging! :-)

Category: Programming

Your email address will not be published. Required fields are marked *

*