我正在尝试让 FireBug Lite 与 IE7 一起使用。给定此代码(没有其他内容):
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
<link rel="stylesheet" href="../../css/third-party/jquery.ui.all.css">
This is a test!
...我在第 8180 行收到错误,“this.messageQueue 为 null 或不是对象”,并且控制台不出现。
如果我删除 CSS 文件引用,它就可以正常工作。另外,这个 CSS 在 FF 和 GC 下与 FireBug 配合得很好。
CSS 文件是最近从 jQ 网站下载的,包含的内容远不及 8,000 行(展开所有 @imports 后),而且我的 Web 服务器可访问的任何代码也不包含令牌“messageQueue”。
我没有任何 IE 插件(据我所知),也从未在这台 PC 上使用过任何类型的 MSMQ 产品。
我还尝试了随机的操作,例如切换语句的顺序、加载 jQuery 的常规 .js 文件、使用 FireBug 书签等,但都无济于事。
有什么建议吗?
I'm trying to get FireBug Lite working with IE7. Given this code (and nothing else):
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
<link rel="stylesheet" href="../../css/third-party/jquery.ui.all.css">
This is a test!
...I get an error at Line: 8180, 'this.messageQueue is null or not an object' and the console does not appear.
If I remove the CSS file reference, it works fine. Also, this CSS works fine with FireBug under FF and GC.
The CSS file is a recent download from jQ's web site and contains nowhere near 8,000 lines (after expanding all @imports), nor does any of the code accessible to my web server contain the token 'messageQueue'.
I don't have any IE plugins (that I am aware of) and have never used any sort of MSMQ products on this PC.
I also tried random things such as switching the order of statements, loading jQuery's regular .js files, using the FireBug bookmarklet instead, etc., all to no avail.
Any advice?
发布评论
评论(4)
这是一个影响 IE7(和 IE8)的已知错误,正在 firebug 问题跟踪器。
这仍然是所有渠道上的问题(Firebug 1.4 stable/debug/beta/developer)。
免责声明:如果您要使用这些方法,请订阅关于此错误的讨论并确保停止当这个问题被修复或者 Firebug 1.5 发布时,就可以使用它。
如果你现在需要使用firebug,你可以使用firebug 1.3。我在任何地方都找不到这种方法的记录...
更好的方法是使用 Firebug 1.3 作为书签。我已经根据 firebug 发布存档破解了这个小书签 URL:
只需使用上面的 URL 字段将其转储到您的“链接”栏中即可。
This is a known bug that affects IE7 (and IE8) and is being tracked on the firebug issue tracker.
This is still an issue on all channels (Firebug 1.4 stable/debug/beta/developer).
Disclaimer: If you're going to use these methods, please subscribe to the discussion about this bug and make sure you stop using this contrived one either when it's fixed, or Firebug 1.5 comes out.
If you need to use firebug now, you could use firebug 1.3. This method I can't find documented anywhere...
A better approach would be to use Firebug 1.3 as a bookmarklet. I've hacked up this bookmarklet URL based on the firebug release archive:
Just dump it into your 'links' bar using the above in the URL field.
造成这种情况的一个可能原因是:没有样式表或 CSS 样式数据。不知道为什么。
如果没有 CSS 并且您看到此错误,请添加一些 CSS,Firebug Lite 可能会再次工作。
例如,此 JSbin 具有令牌 CSS 规则,可以与 IE8 中的 Firebug Lite 配合使用:
http://jsbin.com/etecub/5/
代码:http://jsbin.com/etecub/5/edit
这个 JSbin,相同但没有 CSS 规则,无法在 IE8 中加载 Firebug Lite,并出现错误
'this.messageQueue'为空或不是对象
:http://jsbin.com/etecub/6/
代码:http ://jsbin.com/etecub/6/edit
似乎规则是否实际应用并不重要(例如 http://jsbin.com/etecub/9 工作正常)。如果您附加了样式表并看到此错误,并且上述方法不起作用,则可以尝试使用一两个 CSS 规则向文档添加
One possible cause of this: if there's no stylesheet or CSS style data. No idea why.
If there is no CSS and you're seeing this error, add some and Firebug Lite might just work again.
For example, this JSbin, with a token CSS rule, works with Firebug Lite in IE8:
http://jsbin.com/etecub/5/
Code: http://jsbin.com/etecub/5/edit
This JSbin, identical but with no CSS rules, fails to load Firebug Lite in IE8 with the error
'this.messageQueue' is null or not an object
:http://jsbin.com/etecub/6/
Code: http://jsbin.com/etecub/6/edit
It seems like it doesn't matter if the rule is actually applied or not (e.g. http://jsbin.com/etecub/9 works fine). If you've got a stylesheet attached and see this error anyway, and the above doesn't work, maybe try adding a
<style>
block to the document with a CSS rule or two.我遇到了同样的问题,Firebug Lite 无法使用 Meteor 应用程序打开。
阅读 bugtracker 讨论后,我尝试了调试版本,它基本上只是库的未压缩版本。是的,这带来了不同,Firebug Lite 现在可以在 Chrome 和 Safari 中启动。
我现在使用的标签:
I had the same issue with Firebug Lite not opening with my Meteor App.
After reading the bugtracker discussions I tried the debug-version, which is basically only the uncompressed version of the library. And yes, that made the difference and Firebug Lite now starts in both Chrome and Safari.
The tag I am using right now:
刚刚看到一个对我有帮助的答案,从这里: https://github.com/angular /angular.js/issues/3596。 bug 报告本身位于 Angular 项目存储库中,但它与 Angular 没有任何关系——对我来说,问题是在普通的 HTML/CSS/JS 页面上显现出来的,并且修复程序在那里工作:出色地。
引用那里的内容:
Just saw an answer that helped me, from here: https://github.com/angular/angular.js/issues/3596. The bug-report itself is on the Angular project repo, but it doesn't have anything to do with Angular -- the problem, for me, was manifesting itself on a vanilla HTML/CSS/JS page, and the fix worked there as well.
Quoting from there: