- Create a new Git working directory so you can compile both Firefox and B2G desktop separately
- You could just clone gecko-dev again... but instead use new-workdir to share files and save space
- In the new checkout, use the attached file as your
.mozconfig
- Running a simulator requires a Gaia profile, so clone it
- In the Gaia checkout, place the attached
custom-prefs.js
andcustom-settings.json
in<GAIA_DIR>/build/config/
- Build a Gaia profile with
P=1 NOFTU=1 GAIA_APP_TARGET=production make profile
- This is a one time step, because Gaia does not contain DevTools server code
- In your new Gecko checkout, switch to the branch you are working on / apply your changes in some way
- Run
mach build
- This creates a b2g desktop build, which includes DevTools server code such as the actors
- Run your b2g desktop build with
mach run -profile <GAIA_DIR>/profile -start-debugger-server 6000
- You must use an absolute path to the profile, as it will fail otherwise
- In WebIDE, connect via the Remote Runtime using
localhost:6000
- As you make more changes, close the b2g desktop window, and repeat steps 2 - 4