Fastest way to debug Firefox addons during development

前端 未结 7 851
一个人的身影
一个人的身影 2020-12-12 14:14

Debugging a Firefox addon is a slow process: (1) edit source code in a JS editor (2) package into XPI using a build script (3) drag into Firefox to install (4) restart Firef

7条回答
  •  轮回少年
    2020-12-12 14:27

    To make development of the add-on faster, an important goal is to eliminate restart of FF to test every code change. Three options that I can think of:

    • Use the FF nightly 31 build, based on the other answers in this post.

    • Use the following add-on https://addons.mozilla.org/en-US/firefox/addon/autoinstaller/

    • Build it in your code with a restartless add-on. Refer to the answer in this post firefox restartless bootstrap extension script not reloading

    I have used the last two options and it works greatly for me.

提交回复
热议问题