简体   繁体   中英

console.log quit working in Chrome

I'm not exactly sure when it started happening, roughly the last week or so, but Chrome no longer seems to print my console.log statements. I've included a screenshot where on the console I type console.log('hello world'), and it simply prints undefined. This is occuring on my Mac, Chrome Version 29.0.1547.65. This exact same test on my Windows machine (Chrome version 29.01547.66 m) produces the output

hello world
undefined

I don't believe I have any filtering turned on or am doing anything differently than I was roughly a week ago. Thanks for any suggestions in advance.

在此处输入图片说明

click in the funnel and make sure you have Logging checked

在此处输入图片说明

In my case the problem was Firebug Lite, which I thought I wasn't using at the moment (it was collapsed).

Open Firebug Lite and check off "Override Console Object".

Then the native Chrome console will receive messages again, and Firebug's console won't (like it couldn't print on both at the same time; go figure).

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM