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 Fireb开发者_StackOverflow社区ug and none of the answers were specific enough anyway, so can I view console.log in Chrome Developer tools? If so, where? (screenshot)
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:
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.
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.
It is a console utility in Chrome too. It is pretty easy to open up Chrome Javascript Console and try it:
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
精彩评论