console.log 没有将消息打印到 firebug 控制台?
我面临着这个奇怪的问题。我现在正在调试的Web应用程序正在调用javascript console.log/console.log/error/debug/等,但是Firebug控制台根本不打印它们。 该应用程序使用Dojo/Dijit 工具包。不确定是否有什么特别的地方
似乎不是浏览器的问题,我尝试了另一个带有 console.debug 调用的简单网页,并且该消息按预期显示在控制台上。
请告知我应该寻找什么。我也尝试过 Chrome/IE。
提前致谢/
I am facing this weird problem. The WebApp I'm debugging right now, is invoking the javascript console.log/console.log/error/debug/etc., the Firebug console however, doesn't print them at all.
This application uses Dojo/Dijit toolkit. Not sure if there is anything special about it
It doesn't appear to be a problem with the Browser, I tried another simple web-page with a console.debug call, and the message appears on the console as expected.
Please advise about what should I look for. I have also tried Chrome/IE.
Thanks in Advance/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
console
没有写保护,可以用任何东西替换。您可以尝试找出
console.log
到底是什么。编辑:
更好的方法是
在 Firebug 中,单击该函数可以直接转到其定义。
console
is not write protected, it can be replaced with anything. You could tryto find out what
console.log
really isEdit:
A better method would be
In Firebug, clicking on the function takes you directly to its definition.
您尝试过window.console.log()吗?也许你不在窗口范围内
did you try
window.console.log()
? Maybe you are not in window scope在这种情况下,请不要忘记检查浏览器控制台上的“日志记录”是否已启用或处于活动状态。
In case like this do not forget to check if "Logging" is enabled or active at your console of browser.
只是为了更新这个问题-:
确保firebug已启用-->对所有网页均启用。
重新加载应用程序。
然后在firebug面板中-->控制台-->全部。
所有 console.log 消息都会出现。
Just to update this question -:
Ensure that firebug is Enabled - - > On for all Web Pages.
Reload the application.
Then in the firebug panel - - > Console - - > All.
All the console.log messages will appear.