Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

console.log not showing in my firebug

In jsfiddle.net, I have this simple code:

console.log('yep');
alert('hello');

I can see the alert window but nothing in my firebug console.

Is there a reason why ?

enter image description here

like image 487
Majid Laissi Avatar asked Oct 24 '12 00:10

Majid Laissi


3 Answers

I'm encountering it as well on my FF15. In my case, it is caused by the built-in "web console" in "web developer" Ctrl+Shift+K

https://developer.mozilla.org/en-US/docs/Tools/Web_Console

Beginning with Firefox 4, the old Error Console has been deprecated in favor of the new, improved Web Console. The Web Console is something of a heads-up display for the web, letting you view error messages and other logged information. In addition, there are methods you can call to output information to the console, making it a useful debugging aid, and you can evaluate JavaScript on the fly.

like image 147
fedmich Avatar answered Oct 16 '22 02:10

fedmich


I'm new to using console.log (I used to use alert()s) and was wondering why I couldn't see console.log messages in Firebug too.

After a several minutes of web searching I realised the console mode was set to 'Debug Info'. Clicking the 'All' button made all my messages appear.

The OP didn't make this particular mistake, admittedly. It's a rookie error, but still non-obvious enough (I haven't used Firebug for a while) to bring me here before I managed to figure it out.

like image 43
Medlock Perlman Avatar answered Oct 16 '22 04:10

Medlock Perlman


This issue has been fixed in Firebug 1.11.0a5. More info is here

like image 25
amit_g Avatar answered Oct 16 '22 04:10

amit_g