- Install
depot_tools
(ensure they're on yourPATH
). git clone https://github.com/motiz88/rn-chrome-devtools-buildscripts
cd rn-chrome-devtools-buildscripts
gclient sync --no-history
- For local development, you may at this point delete the
devtools-frontend
directory, create a symlink to yourrn-chrome-devtools-frontend
checkout in its place, and rungclient sync --no-history
again. cd devtools-frontend
- Generate Ninja build files:
gn gen out/Default
- Build:
autoninja -C out/default
- Start a static web server:
python3 -m http.server 8000 --directory out/Default/gen/front_end
- The frontend is available at
http://localhost:8000/inspector.html
(orhttp://localhost:8000/rn_inspector.html
for the RN-specific entry point). - You can connect the frontend to a target by adding the appropriate
?ws=
parameter to the above URL. To build this parameter manually, take the target'sdevtoolsFrontendUrl
, remove the leadingws://
and pass it through URL encoding.
NOTE: You may need to open DevTools for DevTools and select "Disable cache" for your build changes to be picked up when you refresh.
See https://github.com/ChromeDevTools/devtools-frontend/blob/main/docs/workflows.md for more general information about development workflows in the Chrome DevTools codebase.
The modified frontend is deployed continuously to https://rn-chrome-devtools-frontend.netlify.app/rn_inspector.html. It is built by a GitHub Action based on the instructions above.