Mark Kramer
Mark Kramer

Reputation: 3214

What is console.log without Firebug?

I've seen a lot of answers to this question but they all involve Firebug, I don't use Firebug and none of the answers were specific enough anyway, so can I view console.log in Chrome Developer tools? If so, where? (screenshot)

Upvotes: 2

Views: 501

Answers (4)

Michael Mrozek
Michael Mrozek

Reputation: 175715

Yes, calls to console.log show up in the Chrome Developer tools; the bottom half is a Javascript console, and the messages will appear there:

Screenshot demo

Upvotes: 4

Nicole
Nicole

Reputation: 33227

It is a console utility in Chrome too. It is pretty easy to open up Chrome Javascript Console and try it:

enter image description here

The Javascript Console is a tab of the Developer Tools (View -> Developer -> Developer Tools). To go directly to it:

  • alt + cmd + J on Mac
  • Ctrl + Shift + J on Windows

Upvotes: 1

Adam Eberlin
Adam Eberlin

Reputation: 14205

Yes, console.log() messages show up in Chrome's Console.

In Chrome, I personally tend to be lazy, and just right click an element -> inspect element. Then you just switch over to the console tab and it's all gravy.

View -> Developer -> Javascript Console is the non-lazy way to do it.

Upvotes: 1

hvgotcodes
hvgotcodes

Reputation: 120318

console.log('dkdf') just outputs a line on whatever developer console you are using. Could be firebug or webkit developer tools. I don't think it's supported on IE.

To see it, on my mac i do command+option+i. Or go to the wrench in the upper right, then tools, then developer tools.

enter image description here

Upvotes: 1

Related Questions