-
Notifications
You must be signed in to change notification settings - Fork 8.4k
feature(cli): add EXPO_USE_UNSTABLE_DEBUGGER
to enable the new React Native JS Inspector
#25671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXPO_EXPERIMENTAL_DEBUGGER
to enable the new React Native JS Inspector
EvanBacon
reviewed
Nov 30, 2023
EXPO_EXPERIMENTAL_DEBUGGER
to enable the new React Native JS InspectorEXPO_USE_UNSTABLE_DEBUGGER
to enable the new React Native JS Inspector
1ea6862
to
3312f06
Compare
2f87890
to
1b77fa2
Compare
…t Native JS Inspector
Co-authored-by: Evan Bacon <bacon@expo.io>
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
1b77fa2
to
e0b855a
Compare
amandeepmittal
approved these changes
Dec 3, 2023
byCedric
commented
Dec 3, 2023
3 tasks
byCedric
added a commit
that referenced
this pull request
Dec 12, 2023
…devices (#25879) # Why Correction of #25671 # How - Use `app.deviceName` instead of `app.title` # Test Plan  # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
byCedric
added a commit
that referenced
this pull request
Dec 12, 2023
…devices (#25879) # Why Correction of #25671 # How - Use `app.deviceName` instead of `app.title` # Test Plan  # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
This was referenced Dec 12, 2023
byCedric
added a commit
that referenced
this pull request
Dec 12, 2023
# Why Stacked on top of #25881 Correction of #25671 This was in place for the dev menu, and I deleted it a bit too early in #25671. We can only delete this once we fully swapped over to `@react-native/dev-middleware`, which is currently only used for the inspector proxy infrastructure. # How - Added back `createJsInspectorMiddleware` from #25671 # Test Plan - `$ bun create expo ./test-devmenu-debugger --template blank@50` - `$ cd ./test-devmenu-debugger` - `$ bun expo install expo-dev-client` - `$ bun expo start` - Press `m` in terminal - Press "Inspect JS" in the menu within the app # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
3 tasks
gabrieldonadel
added a commit
that referenced
this pull request
Dec 12, 2023
# Why Closes ENG-10881 # How Adds back `createJsInspectorMiddleware` from #25671 to the CLI and update JS inspector URL on Expo GO and expo-dev-menu to use `/_expo/debugger` # Test Plan Run Expo Go unversioned and dev-client through bare expo and test opening the debugger through the dev menu on Android and iOS # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Cedric van Putten <me@bycedric.com>
onizam95
pushed a commit
to onizam95/expo-av-drm
that referenced
this pull request
Jan 15, 2024
…t Native JS Inspector (expo#25671) # Why Follow-up of expo#25649 # How This PR changes two things 1. When pressing `j` in terminal, allow users to select a device using a select UI. This is copied from the multiple dev tools, and uses the (known) device name. This replaces the "open all app debuggers" to confuse users less. 2. When using `EXPO_USE_UNSTABLE_DEBUGGER=true`, the React Native JS Inspector is used instead of the "classic" Chrome DevTools from SDK <=49. It also cleans up the older middleware that handled `/inspector`. This is now handled by the CDP-spec-compliant `/json/list`. We could also move everything under `_expo/inspector/...` if this is a problem. # Test Plan - `$ bun create expo ./test-debugger --template blank` - `$ bun expo install expo@canary` - `$ bun expo install --fix` - `$ bun expo run:ios` - Or `$ EXPO_USE_UNSTABLE_DEBUGGER=true bun expo run:ios` # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Evan Bacon <bacon@expo.io> Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
onizam95
pushed a commit
to onizam95/expo-av-drm
that referenced
this pull request
Jan 15, 2024
…devices (expo#25879) # Why Correction of expo#25671 # How - Use `app.deviceName` instead of `app.title` # Test Plan  # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
onizam95
pushed a commit
to onizam95/expo-av-drm
that referenced
this pull request
Jan 15, 2024
# Why Closes ENG-10881 # How Adds back `createJsInspectorMiddleware` from expo#25671 to the CLI and update JS inspector URL on Expo GO and expo-dev-menu to use `/_expo/debugger` # Test Plan Run Expo Go unversioned and dev-client through bare expo and test opening the debugger through the dev menu on Android and iOS # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). --------- Co-authored-by: Cedric van Putten <me@bycedric.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Follow-up of #25649
How
This PR changes two things
j
in terminal, allow users to select a device using a select UI. This is copied from the multiple dev tools, and uses the (known) device name. This replaces the "open all app debuggers" to confuse users less.EXPO_USE_UNSTABLE_DEBUGGER=true
, the React Native JS Inspector is used instead of the "classic" Chrome DevTools from SDK <=49.It also cleans up the older middleware that handled
/inspector
. This is now handled by the CDP-spec-compliant/json/list
. We could also move everything under_expo/inspector/...
if this is a problem.Test Plan
$ bun create expo ./test-debugger --template blank
$ bun expo install expo@canary
$ bun expo install --fix
$ bun expo run:ios
$ EXPO_USE_UNSTABLE_DEBUGGER=true bun expo run:ios
Checklist
npx expo prebuild
& EAS Build (eg: updated a module plugin).