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

时光怂恿深爱的人放手 提交于 2019-12-18 12:47:15

问题


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.


回答1:


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.




回答2:


In 2 steps:

  1. disable or (better) uninstall Firebug
  2. press F12 and enjoy the console and other Devtools

Why: Firebug is not regularly updated anymore, it often becomes obsolete with new FF update. Tools already available in Firefox (F12) are inglobating it.



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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!