How to change the source code without restarting cfx and Firefox while debugging the SDK add-on?

I am developing a Firefox add-on using the Add-on SDK. So far, I have to close the debugging process and execute "cfx ​​run" after changing the source code.

So, I would like to know how to edit the source code without reusing Firefox, such as debugging JavaScript in Chrome. Is there a way to debug the modified code after refreshing the page with an injection script?

+5
source share
1 answer

I am a huge fan of the expansion "Expansion Autoinstaller Vladimir Palant":

Firefox, script, :

#!/bin/bash

# quick script to build the xpi and pass it on to the
# extension auto-installer extension running on port 8888

/path/to/addon-sdk/bin/cfx xpi && wget --post-file=add-on-name.xpi http://127.0.0.1:8888/

, script, wget xpi firefox, .

+7

All Articles