Stylized line drawing of mark playing the flute

Even better overriding the Firebug console in IE

I wrote, a while back, about Overriding the Firebug console object to prevent IE from throwing errors when you console.log all over your code.

The only problem that first version is that it's too much to type. Here's a much shorter way of doing it using object literal notation.

if(typeof console=='undefined'){console={log:function(){}};}

It'd be easy to enough add a handler for the console.debug function and to have those functions actually do something in IE (of course you could also just use Firebug Lite) but I find the snippet above is good enough for most cases.