Closed Bug 1592420 Opened 5 years ago Closed 5 years ago

mach should support remote debugging

Categories

(DevTools :: Framework, task, P2)

task

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1583806

People

(Reporter: jlast, Unassigned)

Details

It is fairly common for me to be working on a devtools feature that breaks the toolbox and browser toolbox at the same time [1]. In these cases, I try to remotely debug my local build with a Nightly browser toolbox. I've been using bgrins' script [2] for the past couple years, but with the recent changes it stopped working.

I think it would be nice with the fission work to fix it and perhaps integrate it into mach. Ideally, we could add a new --jsRemoteDebugger flag that would use the locally nightly build instead.

[1] A good example of this is a protocol.js tweak that affects some of the underlying framework logic.

[2] script for doing remote debugging

# Start a normal instance with the debugger server running
./mach run --start-debugger-server 6083 &

sleep 2

# Run the Browser Toolbox instance
MOZ_BROWSER_TOOLBOX_PORT=6083 /Applications/Firefox\ Nightly.app/Contents/MacOS/firefox-bin --profile /tmp/foobar -chrome chrome://devtools/content/framework/toolbox-process-window.html --purgecaches
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.