views:

360

answers:

3

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.

A: 

In Chrome, just press Ctrl + Shift + J and you should see the Javascript console appear. I've just tested it and it shows console.log messages for me.

Marko
(or) Just right click and select `Inspect Elements` then select **show console**
Ninja Dude
I am in the right console, just not seeing any output from the jQuery.log calls. Is that the same as console.log?
James McMahon
yes, that plugin uses console.log if you are in a browser with a console, just look at the link you posted.
Try write with console.log, not jQuery.log and see what happens. That plugin is meant to write to the console if supported, else show the messages in alert boxes. Since you're not getting either, I'd assume a problem with the plugin.
Marko
Direct calls to console.log are not working either.
James McMahon
A: 

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

fudgey
Yup I have All selected. Thanks for pointing that out though, sometimes it's little things like that.
James McMahon
+2  A: 

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.

sf
Thanks, I will have to try that out.
James McMahon