Console.log消息没有显示在Chrome的JavaScript控制台中? [英] Console.log messages not showing up in Chrome's javascript console?

查看:1697
本文介绍了Console.log消息没有显示在Chrome的JavaScript控制台中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 jQuery.log 插件进行日志记录(如果可用,它将记录到console.log ),而且我没有看到Chrome浏览器JavaScript控制台中显示任何日志消息。

日志记录在Firefox下的Firebug控制台上工作,但我必须明确启用Firebug JavaScript控制台。在Chrome浏览器的某个地方错过了一些选项?



编辑:

登录到控制台的唯一东西是
$ b


未捕获的语法错误,无法识别的表达式:| button

我假设Chrome控制台即使在出现上述错误之后也会记录语句,但Chrome在这里可能存在某些问题,请参阅 http://code.google.com/p/chromium/issues/detail?id=29062 。我在Linux下使用Chrome 5.0.375,并且该错误被列为Windows XP,Chrome 4.0的问题,但仍然可以应用。 解决方案

我刚刚遇到同样的问题,试图找到答案时发现了这个问题。



对我来说,这是固定的禁用chrome中的firebug lite
它正在吞服所有控制台消息。

I am logging using the jQuery.log plugin (which logs to console.log if available) and I am not seeing any of the logging messages appear in the Chrome JavaScript console.

Logging works on Firebug's console under Firefox, but I did have to explicitly enable the Firebug JavaScript console. Have a missed some option somewhere under Chrome?

Edit:
The only thing being logged to the console is

Uncaught Syntax error, unrecognized expression: |button

I assume that the Chrome console is suppose to log statements even after errors like the one above, but there may be some kind of issue with Chrome here, see http://code.google.com/p/chromium/issues/detail?id=29062. I am using Chrome 5.0.375 under Linux and that bug is listed as a Windows XP, Chrome 4.0 issue, it could still apply.

解决方案

I've just had the same problem and found this question when trying to find an answer.

What fixed this for me was disabling firebug lite in chrome. It was swallowing all console messages.

这篇关于Console.log消息没有显示在Chrome的JavaScript控制台中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆