开发者

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:

What is console.log without Firebug?


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.

What is console.log without Firebug?


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:

What is console.log without Firebug?

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜