Debugging with Firebug

Posted by weatherangel on Jan 23, 2009 in browsers |

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();
    }

Tags: ,

Reply

Copyright © 2010 From Legacy to Web 2.0 All rights reserved. Theme by Laptop Geek.