gecko-dev/remote/doc/Building.md
Andreas Tolfsen b41837916e bug 1523104: remote: change flag from --debug to --remote-debugger; r=ochameau
Also introduces a --remote-debugging-port <port> flag for compatibility
with Chrome and Opera.
2019-03-08 16:26:51 +00:00

832 B
Raw Blame History

Building

The remote agent is by default not included in Firefox builds. To build it, put this in your mozconfig:

ac_add_options --enable-cdp

This exposes a --remote-debugger flag you can use to start the remote agent:

% ./mach run --setpref "browser.fission.simulate=true" -- --remote-debugger

When you make changes to the XPCOM component you need to rebuild in order for the changes to take effect. The most efficient way to do this, provided you havent touched any compiled code (C++ or Rust):

% ./mach build faster

Component files include the likes of RemoteAgent.js, RemoteAgent.manifest, moz.build files, prefs/remote.js, and jar.mn. All the JS modules (files ending with .jsm) are symlinked into the build and can be changed without rebuilding.