Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Console.log messages not showing up in Chrome's javascript console?

I am logging using the jQuery.log plugin (which logs to console.log if available) and I am not seeing any of the logging messages appear in the Chrome JavaScript console.

Logging works on Firebug's console under Firefox, but I did have to explicitly enable the Firebug JavaScript console. Have a missed some option somewhere under Chrome?

Edit:
The only thing being logged to the console is

Uncaught Syntax error, unrecognized expression: |button

I assume that the Chrome console is suppose to log statements even after errors like the one above, but there may be some kind of issue with Chrome here, see http://code.google.com/p/chromium/issues/detail?id=29062. I am using Chrome 5.0.375 under Linux and that bug is listed as a Windows XP, Chrome 4.0 issue, it could still apply.

like image 770
James McMahon Avatar asked Jul 13 '10 19:07

James McMahon


People also ask

Why my console is not working in Chrome?

To restore the console in new tab go to console and type delete window. console it will return true after that restart the chrome and you are good to go.

How do I enable the JavaScript console in Chrome?

To open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools. You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).


2 Answers

I've just had the same problem and found this question when trying to find an answer.

What fixed this for me was disabling firebug lite in chrome. It was swallowing all console messages.

like image 117
sf. Avatar answered Sep 18 '22 15:09

sf.


Make sure you have the console showing and that it is showing "All".

The cursor is on the button to hide/show the console.

alt text


Update: In newer versions of Chrome, you need to click the filter icon, then make sure "All" is selected.

console filter

like image 35
Mottie Avatar answered Sep 21 '22 15:09

Mottie