Use with XULRunner

mdaniel edited this page Jan 31, 2012 · 4 revisions

Simply put MozRepl XPI package under your application’s extensions/ directory (ensuring that the expanded xpi’s directory or the .xpi filename matches its em:id in install.rdf) and launch the application like this:


    $ xulrunner application.ini -repl

You can optionally specify a port number after the -repl switch, otherwise the default 4242 will be used.

If you get tired of typing -repl on the command line, you can also set the extensions.mozrepl.autoStart preference to true.

Note: This technique also works for Thunderbird, and (probably) any other Mozilla-based product that supports extensions.