I have a problem with the current version of FireBug.
Firefox: 3.6.13
Firebug: 1.6.0 and 1.6.1b1 (tried both)
My Javascript can't use console.log (or any console at all) to output debug messages. I'm not sure when it stopped working, but for now I get an "console is not defined" when I try to access it or a message popup when I run this code:
if (console == undefined) {
alert(1);
}
I had the latest FirePHP extension (DeveloperCompanion) installed but removed it to see if that was causing the problem. Didn't change anything though.
Any ideas? Is this happening to someone else, too?
[UPDATE]
Looks like my problem was actually caused by something else: I use jQuery and have all my code wrapped in $(function() {.....}); to make it run after the page has been rendered.
What I didn't consider is that then the code runs in another scope. console is not available in that scope.
To use the console I have to call window.console.log('bla');.