如何调试Firefox附加SDK扩展? [英] How to debug a Firefox Add-on SDK extension?

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

问题描述

我正在研究Firefox插件SDK扩展的代码。我想调试它。



我们可以像在 Firebug 中那样进行调试吗? Firebug不适用于我的插件。

Google上的结果 ...
$ b


启用附加调试器,你需要在Firefox中检查启用Chrome和附加调试和启用远程调试设置。

为此,请选择切换工具,打开开发工具设置,然后选中启用chrome和插件调试和启用远程调试。



现在打开附加管理器。在您的加载项的旁边,您将看到一个标有调试的按钮。点击此按钮启动调试器。



接下来,您将看到一个对话框,要求您接受传入的连接。点击确定,调试器将在一个单独的窗口中开始。



I am working on code for a Firefox Add-on SDK extension. I want to debug it.

Can we debug it like we do in Firebug? Firebug is not working for my add-on.

解决方案

First result on Google…

To enable the Add-on Debugger you need to check the "Enable chrome and addon debugging" and "Enable remote debugging" settings in Firefox.

To do this, select "Toggle Tools" from the Web Developer menu in Firefox, open the Developer Tools Settings, and check "Enable chrome and addon debugging" and "Enable remote debugging".

Now open the Add-on Manager. Next to the entry for your add-on you will see a button labeled "Debug". Click this button to launch the debugger.

Next you'll see a dialog asking you to accept an incoming connection. Click "OK", and the debugger will start in a separate window.

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

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