Make it possible to pass a remote host to the --jsdebugger commandline flag

RESOLVED WONTFIX

Status

defect
P3
normal
RESOLVED WONTFIX
6 years ago
11 months ago

People

(Reporter: Fallen, Unassigned)

Tracking

(Blocks 1 bug)

Trunk
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

bug 895471 added a --jsdebugger commandline argument, which starts the browser debugger using resource:///modules/devtools/DebuggerProcess.jsm which is in browser/

This doesn't work for any other toolkit apps until all code moves to /devtools and the UI is compatible to non-Firefox apps.

Until we get there, I think it would be a good idea to allow connecting to a remote instance using this flag as an argument instead. Example:

# Starts the browser debugger
firefox --jsdebugger 

# Starts the debugger ui, but makes a remote connection to host:port
firefox --jsdebugger localhost:6030

# Optional: Starts the debugger ui and uses a unix socket to connect
firefox --jsdebugger /path/to/socket.file

If Firefox is already running, it should still open the debugger. This will allow me to make it even easier for the user to access remote debugging capabilities for Thunderbird.

Fixing this should be fairly easy using nsICommandLine's extra features.
Depends on: 895471
Priority: -- → P3
Summary: Allow passing remote host to --jsdebugger commandline → Make it possible to pass a remote host to the --jsdebugger commandline flag
I've solved this by employing the same tactics as the browser debugger, copying over the prefs.js file to an empty profile and then starting Firefox with that profile.

I'm therefore closing this bug WONTFIX, if you see any value in implementing this anyway please reopen.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX

Updated

11 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.