博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
火狐扩展开发用到的配置及工具
阅读量:5308 次
发布时间:2019-06-14

本文共 4303 字,大约阅读时间需要 14 分钟。

有助于开发的一些配置:

Installing the extension sets up most of the development environment described below.

There is a set of development preferences that, when enabled, allows you to view more information about application activity, thus making debugging easier. However,  these preferences can degrade performance, so you may want to use a separate development profile when you enable these preferences. For more information about Mozilla preferences, refer to the mozillaZine article on "".

Not all preferences are defined by default, and are therefore not listed in about:config by default. You will have to create new (boolean) entries for them.

  • javascript.options.showInConsole = true. Logs errors in chrome files to the .
  • nglayout.debug.disable_xul_cache = true. Disables the XUL cache so that changes to windows and dialogs do not require a restart. This assumes you're . Changes to XUL overlays will still require reloading of the document overlaid.
  • browser.dom.window.dump.enabled = true. Enables the use of the dump() statement to print to the standard console. See for more info. You can use instead of dump() from a privileged script.
  • javascript.options.strict = true. Enables strict JavaScript warnings in the Error Console. Note that since many people have this setting turned off when developing, you will see lots of warnings for problems with their code in addition to warnings for your own extension. You can filter those with .
  • devtools.chrome.enabled = true. This enables to run JavaScript code snippets in the chrome context of the Scratchpad from the Tools menu. Don't forget to switch from content to browser as context.
  • devtools.debugger.remote-enabled = true. This adds a "Browser Debugger" entry to the "Web Developer" submenu of the "Tools" menu.  The can be used to debug the JavaScript code of extensions.
  • extensions.logging.enabled = true. This will send more detailed information about installation and update problems to the . (Note that the extension manager automatically restarts the application at startup sometimes, which may mean you won't have time to see the messages logged before the automatic restart happens. To see them, prevent the automatic restart by setting the environment NO_EM_RESTART to 1 before starting the application.)
  • nglayout.debug.disable_xul_fastload = true. For Gecko 2.0+ (Firefox 4.0+). See for more information. Although the bug has been closed, it is believed that this pref is still relevant.
  • You might also want to set dom.report_all_js_exceptions = true. See for details.
  • devtools.errorconsole.deprecation_warnings. Detect deprecated code use.

 

开发工具:

These extensions may help you with your development.

  • , used to inspect and edit the live DOM of any web document or XUL application (Firefox and Thunderbird)
  • , a JavaScript Debugger (, )
  • a suite of tools for extension development (Firefox)
  • an add-on which makes it easier to detect problems which will lead to rejection by addons.mozilla.org
  • enhanced JavaScript console (, )
  • for writing/testing javascript on Firefox windows
  • Open at this node from Inspect on context menu.
  • navigate and view files in chrome:// (, )
  • a user file editor (Firefox and Thunderbird)
  • a web-based application that generates an extension skeleton (Firefox, Thunderbird, and others)
  • a variety of development tools (Firefox)
  • , a general purpose extension with builtin tools for extension development, including a command line with chrome JavaScript evaluation (including property and function argument completion) and the ability to demand-load external JavaScript and CSS files into window chrome.
  • combines elements of a JavaScript debugger and DOM (Firefox, "kinda works for Thunderbird")
  • explore and modify Firefox and other Mozilla apps while they run (Firefox and Thunderbird)
  • an enhanced JavaScript console (, )
  • an XPCOM inspector (Firefox and Thunderbird)
  • to test snippets of JavaScript (Firefox and Thunderbird)
  • to manage the SQLite database (Firefox and Thunderbird)
  • enables access to various about: dialogs from the View menu (, )
  • useful for testing debug symbols and the crash reporting system (Firefox and Thunderbird)
  • displays JavaScript object methods and properties for any available scope
  • sets up the development environment described above when installed

 

 源自:

 

转载于:https://www.cnblogs.com/muha/p/3293482.html

你可能感兴趣的文章
七丶Python字典
查看>>
Excel-基本操作
查看>>
面对问题,如何去分析?(分析套路)
查看>>
Excel-逻辑函数
查看>>
面对问题,如何去分析?(日报问题)
查看>>
数据分析-业务知识
查看>>
nodejs vs python
查看>>
poj-1410 Intersection
查看>>
Java多线程基础(一)
查看>>
TCP粘包拆包问题
查看>>
Java中Runnable和Thread的区别
查看>>
SQL Server中利用正则表达式替换字符串
查看>>
POJ 1015 Jury Compromise(双塔dp)
查看>>
论三星输入法的好坏
查看>>
Linux 终端连接工具 XShell v6.0.01 企业便携版
查看>>
JS写一个简单日历
查看>>
LCA的两种求法
查看>>
Python 发 邮件
查看>>
mysql忘记密码的解决办法
查看>>
全面分析Java的垃圾回收机制2
查看>>