Avoiding problems with Firebug: debug and M.I.A. console
Posted by David on May 17, 2008 at 12:01 PM
Missing in action (M.I.A) is a status assigned to a member of the armed services who is reported missing following combat and may be injured, captured, or dead.
Yes my friends: missing in action. That could happen to the useful console object from the Firebug tool (which the vast majortiy of javascript "hackers" around the world use or know).
If you are using it, as we do, do not forget to use this snippet before your javascript code. You will avoid the exceptions that forgotten and innocent console.debug lines will cause.
if (!window.console) { var console = { debug : function(value) { }}}
By the way, lately the Firebug tends to knock out my Firefox... or is it the Firefox the one being sluggish lately... I'm clueless...