简体   繁体   English

如何获得Angular $ log消息出现在FireFox / FireBug控制台中?

[英]How can I get Angular $log messages to appear in FireFox/FireBug console?

I'm using Angular 1.6.2. 我正在使用Angular 1.6.2。 I find that messages from the $log service do not appear in the Console window for the FireFox browser with FireBug installed. 我发现安装了FireBug的FireFox浏览器的$ log服务消息没有出现在“控制台”窗口中。 (Firefox 52.0.1). (Firefox 52.0.1)。

How can I get them to appear? 如何使它们出现?

When I run the same Website in Chrome, IE, and Edge the $log messages appear happily. 当我在Chrome,IE和Edge中运行相同的网站时,$ log消息会愉快地显示。 Even the sample in the Angular documentation ( https://docs.angularjs.org/api/ng/service/ $log) does not display a Console message in my FireFox. 甚至Angular文档( https://docs.angularjs.org/api/ng/service/ $ log)中的示例也不会在FireFox中显示控制台消息。

Buried in the answers to this Question ( Firebug console: not showing console.log ) is 埋藏在此问题的答案中( Firebug控制台:未显示console.log )是

Firebug is officially discontinued now and the console output is broken in Firefox 51.0.1 due to a change in the Firefox internal APIs Firebug uses to access the related data....Firebug users are advised to switch over to the Firefox DevTools instead. Firebug现已正式停产,并且由于Firefox内部API的更改而导致Firefox 51.0.1中的控制台输出中断。Firebug用于访问相关数据。...建议Firebug用户改用Firefox DevTools。 There, the console output works as expected. 在那里,控制台输出按预期工作。

I'm using FireFox 52. I installed the FireFox developer edition and I can see $log messages in the console. 我正在使用FireFox52。我安装了FireFox开发人员版,并且可以在控制台中看到$ log消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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