mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
3c8ae0e869
We can reconstruct the CDP error and print a better error message using RemoteAgentError. This is better than the current output, which in a lot of cases will be "CDP Exception: [object Object]". A possible future improvement to this involves extending the CDP protocol to send the individual components of the error individually, so that we don't have to parse the string. Differential Revision: https://phabricator.services.mozilla.com/D28703 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
doc | ||
domains | ||
pref | ||
server | ||
sessions | ||
targets | ||
test | ||
command-line-handler.js | ||
Connection.jsm | ||
Error.jsm | ||
jar.mn | ||
JSONHandler.jsm | ||
Log.jsm | ||
moz.build | ||
Observer.jsm | ||
Protocol.jsm | ||
README | ||
RecommendedPreferences.jsm | ||
RemoteAgent.jsm | ||
RemoteAgent.manifest | ||
Sync.jsm | ||
WindowManager.jsm |
The Firefox remote agent is a low-level debugging interface based on the CDP protocol. With it, you can inspect the state and control execution of documents running in web content, instrument Gecko in interesting ways, simulate user interaction for automation purposes, and debug JavaScript execution. This component provides an experimental and partial implementation of a remote devtools interface using the CDP protocol and transport layer. See https://firefox-source-docs.mozilla.org/remote/ for documentation. The remote agent is disabled by default, but can be enabled by setting a preference before running it: % ./mach run --setpref "remote.enabled=true" --remote-debugger