如何阅读Firefox日志 [英] How to read Firefox log

查看:276
本文介绍了如何阅读Firefox日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于Firefox浏览器的日志的问题。



我在实现了我的Firefox扩展的自动更新功能,在 http://www.borngeek.com/firefox/automatic-firefox-extension-updates/ 并获得一些帮助后发布 Firefox扩展自动更新功能,更新功能仍然无法正常工作,但在Firefox日志中提供了更多信息。任何人都可以请给我一些建议,或花一些时间来看看日志输出。
$ b

我的开发环境是


  1. Ubuntu 11.04上的Firefox 5 li>
  2. Tomcat 6服务器

删除并重新安装我的扩展的日志输出是



 
*** LOG addons.xpi:启动
*** LOG addons.xpi:checkForChanges
*** LOG addons.xpi:找不到更改
*** LOG addons.xpi:打开数据库
*** LOG addons.repository:请求https://services.addons.mozilla.org/en-GB/火狐/ API / 1.5 /搜索/ GUID:myextension%40mozilla.myextension.org SRC = Firefox和appOS = Linux和appVersion = 5.0&tMain = 23&tFirstPaint = 1641&tSessionRestored = 1042
*** LOG addons.xpi:启动安装文件:/ //home/me/browserplugindev/firefox/test/myextension.xpi
*** LOG addons.xpi:Addon myextension@mozilla.myextension.org将被安装为一个打包的xpi
*** LOG addons.xpi:安装文件:///home/me/browserplugindev/firefox/test/myextension.xpi完成。
注意:子进程收到`Goodbye',关闭
*** LOG addons.xpi:shutdown
*** LOG addons.xpi:startup
*** LOG addons .xpi:checkForChanges
*** LOG addons.xpi:在app-profile
中找到myextension@mozilla.myextension.org的更新清单LOG addons.xpi:处理myextension @ mozilla的安装。 myextension.org在应用程序配置文件中
*** LOG addons.xpi:打开数据库
*** LOG addons.xpi:在app-profile中安装的新增附件myextension@mozilla.myextension.org
*** LOG addons.xpi:更新已安装加载项的更改数据库
*** LOG addons.xpi:更新加载项状态
*** LOG addons.xpi:写入附加组件列表


解决方案

此日志显示安装ID myextension@mozilla.myextension.org 来自磁盘。这里没有什么特别的地方 - 安装计划,重新启动后,实际上完成。没有关于日志中的更新(我猜是安装是手动触发的)。

引用更新检查而不是安装的日志条目以addons.updates开头,而不是addons.xpi。在检查更新清单时,您应该看到一个条目addons.updates:Requesting https:// ...以及其他条目以防出现问题。确保将 extensions.logging.enabled 首选项设置为 true ,并且实际触发更新检查 - 右键单击您的加载项在加载项管理器中,并从上下文菜单中选择查找更新。


I have a question about the log of Firefox Browser.

I am implement the automatic update feature of my Firefox extension, after following the tutorial at http://www.borngeek.com/firefox/automatic-firefox-extension-updates/ and getting some helps at post Firefox extension automatic update feature, the update feature is still not working, but there are more information provided at the Firefox log. Can anyone please give me some advices or take some time to take a look at the log output. Thanks.

My development environment is

  1. Firefox 5 on Ubuntu 11.04
  2. Tomcat 6 server

The log output of a remove and re-install my extension is

*** LOG addons.xpi: startup
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG addons.xpi: Opening database
*** LOG addons.repository: Requesting https://services.addons.mozilla.org/en-GB/firefox/api/1.5/search/guid:myextension%40mozilla.myextension.org?src=firefox&appOS=Linux&appVersion=5.0&tMain=23&tFirstPaint=1641&tSessionRestored=1042
*** LOG addons.xpi: Starting install of file:///home/me/browserplugindev/firefox/test/myextension.xpi
*** LOG addons.xpi: Addon myextension@mozilla.myextension.org will be installed as a packed xpi
*** LOG addons.xpi: Install of file:///home/me/browserplugindev/firefox/test/myextension.xpi completed.
NOTE: child process received `Goodbye', closing down
*** LOG addons.xpi: shutdown
*** LOG addons.xpi: startup
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Found updated manifest for myextension@mozilla.myextension.org in app-profile
*** LOG addons.xpi: Processing install of myextension@mozilla.myextension.org in app-profile
*** LOG addons.xpi: Opening database
*** LOG addons.xpi: New add-on myextension@mozilla.myextension.org installed in app-profile
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi: Updating add-on states
*** LOG addons.xpi: Writing add-ons list

解决方案

This log shows installation of an extension with ID myextension@mozilla.myextension.org from disk. Nothing special here - installation is scheduled, after a restart it is actually completed. Nothing about updates in that log (I guess that the installation was triggered manually).

Log entries referring to update checks rather than installation start with "addons.updates" and not "addons.xpi". When an update manifest is being checked you should see an entry "addons.updates: Requesting https://..." as well as additional entries in case of issues. Make sure that extensions.logging.enabled preference is set to true and that you actually trigger updates check - right-click your add-on in the add-on manager and choose "Find Updates" from the context menu.

这篇关于如何阅读Firefox日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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