如何使用 Chromebug 调试 Firefox 扩展? [英] How to debug a Firefox extension with Chromebug?

查看:23
本文介绍了如何使用 Chromebug 调试 Firefox 扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Chromebug 调试我的 Firefox 插件,但我看不到错误跟踪或日志跟踪.我已经根据

我还必须做什么?

解决方案

2014 年 4 月更新:浏览器调试器现已集成在浏览器工具箱"中,您不再需要设置 about:config 首选项.只需使用开发者工具配置/设置面板:启用 chrome 调试"和启用远程调试".然后,浏览器工具箱"将出现在开发者工具面板中.

Chromebug 已经有好几个月没有为我工作了.我认为它只是被默默地放弃了,但幸运的是,在 Firefox 19 或更高版本上,可以在浏览器本身上使用内置的 JS 调试器.转到 about:config 并设置以下两个首选项:

devtools.chrome.enabled: truedevtools.debugger.remote-enabled: 真

重新启动浏览器后,Web Developer 菜单将包含一个Browser Debugger"条目.

更多信息在这里:https://developer.mozilla.org/en/docs/Debugging_JavaScript>

如果可能,我建议您使用 Aurora 进行调试,因为内置调试器在首次发布时会受到一些限制,并且随着每个版本的发布都在不断改进.

I'm trying to debug my Firefox add-on with Chromebug, but I can't see the error trace or log trace. I've configured a dedicated profile and set about:config parameters according to this Mozilla tutorial. I've installed Firebug and Chromebug with the same version (1.7.2) But when I execute one of my extension "action" with "error thrower" code, nothing happened. No log, no trace.

In Chromebug, the file list is empty. I read in multiple discussions on the web that I should see a list of debuggable scripts.

A screenshot of my environment:

What else must I do?

解决方案

Update April 2014: The browser debugger is now integrated in the "Browser Toolbox" and you no longer need to set about:config prefs. Just use the developer tools configuration/settings panel: "enable chrome debugging" and "enable remote debugging". The "Browser Toolbox" will then be available in the developer tools panel.

Chromebug has not worked for me for many months. I think it's just been silently abandoned but thankfully on Firefox 19 or later, it's possible to use the built-in JS debugger on the browser itself. Go to about:config and set the following two prefs:

devtools.chrome.enabled: true
devtools.debugger.remote-enabled: true

After you restart the browser, the Web Developer menu will contain a "Browser Debugger" entry.

More info here: https://developer.mozilla.org/en/docs/Debugging_JavaScript

If possible, I'd suggest using Aurora for your debugging because the built-in debugger was a little limited when first launched and keeps getting better with every release.

这篇关于如何使用 Chromebug 调试 Firefox 扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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