firefox扩展开发之一 建立开发环境

创建开发的profile:
Ubuntu:

引用

/usr/bin/firefox -no-remote -P dev


Linux其他发行版:

引用

/usr/local/bin/firefox -no-remote -P dev


Mac:

引用

/Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev &


On Windows:

引用

Start -> Run "%ProgramFiles%\Mozilla Firefox\firefox.exe" -no-remote -P dev


如果没有则根据wizard创建一个新的profile。
在地址栏输入about:config,配置一些开发环境的选项:

引用

javascript.options.showInConsole = true
nglayout.debug.disable_xul_cache = true
browser.dom.window.dump.enabled = true
javascript.options.strict = true
extensions.logging.enabled = true
dom.report_all_js_exceptions = true


firefox扩展开发工具:

猜你喜欢

转载自fuliang.iteye.com/blog/554606