XUL Talk:Command Line Handling

From MozillaWiki
Jump to: navigation, search

Temporary Extensions via command line

I have this idea to add a commandline argument like

--enable-extension=path/to/extension/dir

or

--debug-extension=path/to/extension/dir

to xulrunner and/or the firefox apprunner.

Then, one could hook up a remote debugging extensions into a test run, that is shipped with an IDE, for example. Or just test compatibility of extensions.

I'm not sure ad hoc how to pass the GUID to the extension manager, though.

This should hopefully happen early and in the order of the commandline arguments, so that a remote debugger could catch errors from a tested extension.