From Legacy to Web 2.0

The adventures in bringing sites into the present

Debugging with Firebug

Cool article to print out and keep handy on debugging using Firebug. Sadly, I’ve still been using Alert. Call me dinosaur, but it’s worked for me — but I’m trying to change that!

This code snippet will help out with browsers that do not have a console function

var console;
if (console == undefined)
    console = new function()
    {
        this.error = function(src) { alert("Error ---\n\n" + src); };
        this.log = noop();
    }
Categories: browsers