Open Bug 1481256 Opened 6 years ago Updated 7 months ago

Expose option to open/close listening port from about:debugging (i.e. provide a UI for the --start-debugger-server option)

Categories

(DevTools :: about:debugging, defect, P5)

defect

Tracking

(Not tracked)

People

(Reporter: sole, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

This bug is about adding a new UI in about:debugging, to allow users to open/close a port to listen for incoming connections, instead of them starting Firefox with a command line parameter as documented here: https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_Desktop The developer toolbar has been removed and so the option to quickly toggle between listening and not listening is not available to developers anymore. Given our efforts to make remote debugging more accessible, this sounds like it would help in surfacing the functionality.
Priority: -- → P5

As mentioned by :ochameau, in the meantime you can spawn a server from the Browser Toolbox 's console using the following snippet:

      const serverLoader = new DevToolsLoader({
        invisibleToDebugger: true,
      });
      const { DebuggerServer: debuggerServer } = serverLoader.require(
        "devtools/server/debugger-server"
      );
      const { SocketListener } = serverLoader.require(
        "devtools/shared/security/socket"
      );
      debuggerServer.init();
      debuggerServer.registerAllActors();
      debuggerServer.allowChromeProcess = true;

      const listener = new SocketListener(debuggerServer, { portOrPath: 6000 };);
      listener.open();

And after that you should be able to remote debug an already started Firefox instance.

Severity: normal → S3
Attachment #9387226 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: