2019-03-08 16:59:43 +03:00
|
|
|
The Firefox remote agent is a low-level debugging interface based
|
|
|
|
on the CDP protocol.
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
|
|
With it, you can inspect the state and control execution of documents
|
2019-03-08 16:59:43 +03:00
|
|
|
running in web content, instrument Gecko in interesting ways,
|
|
|
|
simulate user interaction for automation purposes, and debug
|
|
|
|
JavaScript execution.
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
|
|
This component provides an experimental and partial implementation
|
2019-03-08 16:59:43 +03:00
|
|
|
of a remote devtools interface using the CDP protocol and transport
|
|
|
|
layer.
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
|
|
See https://firefox-source-docs.mozilla.org/remote/ for documentation.
|
|
|
|
|
2019-03-08 16:59:43 +03:00
|
|
|
The remote agent is not by default included in Firefox builds. To
|
|
|
|
build it, put this in your mozconfig:
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
|
|
ac_add_options --enable-cdp
|
|
|
|
|
2019-02-17 19:14:01 +03:00
|
|
|
This exposes a --remote-debugger flag you can use to start the
|
|
|
|
remote agent:
|
2019-01-29 18:18:42 +03:00
|
|
|
|
2019-02-17 19:14:01 +03:00
|
|
|
% ./mach run --setpref "browser.fission.simulate=true" -- --remote-debugger
|