如何使用Chromebug调试Firefox扩展? [英] How to debug a Firefox extension with Chromebug?
问题描述
我正在尝试使用Chromebug调试Firefox加载项,但是我看不到错误跟踪或日志跟踪。我根据
什么否则我必须做吗?
2014年4月更新:浏览器调试器现在已集成在浏览器工具箱中你不再需要设置:config prefs。只需使用开发人员工具配置/设置面板:启用chrome调试和启用远程调试。然后,浏览器工具箱将在开发人员工具面板中提供。
Chromebug几个月没有为我工作。我认为它只是默认放弃,但幸运的是在Firefox 19或更高版本,可以在浏览器本身使用内置的JS调试器。转到about:config并设置以下两个prefs:
devtools.chrome.enabled:true
devtools.debugger .remote-enabled:true
重新启动浏览器后,Web Developer菜单将包含一个浏览器调试器条目。
更多信息: https://开发人员.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屋!