Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

console.log() doesn't work anymore in Firebug since Firefox 51.0.1

I've just updated firefox to a Firefox 51.0.1 (32-bit), and after the update console.log stopped working.

When I am tring to test some JavaScript variables using console.log(), it doesn't output anything.

question from:https://stackoverflow.com/questions/41933743/console-log-doesnt-work-anymore-in-firebug-since-firefox-51-0-1

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As I mentioned in another answer, this happens because the Firefox internal APIs, which Firebug uses to output the data, have changed. When you open the Browser Console, you'll see the following error:

TypeError: ConsoleAPIListener is not a constructor console.js:149:38

Note that, as stated in a thread in the Firebug discussion group and on the Firebug homepage, Firebug is discontinued and unmaintained. I.e. it breaks more and more with every new version of Firefox and will quit working completely once multi-process Firefox is enabled. There is a blog post explaining the reasons.

The team behind Firebug advises to use the Firefox DevTools instead and there is a migration guide available.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...