Skip to content

Hermes debugging using Chrome DevTools not working since 118.0.5993.70 update #40994

Closed as not planned
@116-7

Description

@116-7

Description

After having Chrome automatically update to 118.0.5993.70 on MacOS Hermes debugging using DevTools as described in the React Native documentation is no longer working.

Testing with Chrome Beta 119.0.6045.21 reveals same issue.

Google's release note for 118.0.5993.70 include mention of a change "CVE-2023-5475: Inappropriate implementation in DevTools." However, the link to Google's bugtracker is not public so it might not be related.

Workaround possible by installing previous version of Chrome for Testing - 117.0.5938.149 as per instructions on Chromium's website.

npx @puppeteer/browsers install [email protected]

React Native Version

0.72.6

Output of npx react-native info

System:
OS: macOS 13.3.1
CPU: (8) arm64 Apple M1
Memory: 63.69 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 16.16.0
path: ~/.nvm/versions/node/v16.16.0/bin/node
Yarn:
version: 1.22.19
path: ~/.nvm/versions/node/v16.16.0/bin/yarn
npm:
version: 8.11.0
path: ~/.nvm/versions/node/v16.16.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.11.3
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10671973
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.15.1
path: /Library/Java/JavaVirtualMachines/jdk-11.0.15.1.jdk/Contents/Home/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.6
wanted: 0.72.6
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

Steps to reproduce

  1. npx react-native@latest init AwesomeProject
  2. npm start
  3. Select either Android or iOS emulator
  4. Open Chrome 118.0.5993.70+ and navigate to chrome://inspect
  5. Attempt to connect via Chrome DevTools to localhost:8081
  6. Observe missing items under Remote Target section of chrome://inspect

Snack, screenshot, or link to a repository

Screenshots showing issue as well as working example in all Chrome versions mentioned in description as well as both Android and iOS.

Screenshot 2023-10-16 at 11 31 35 am Screenshot 2023-10-16 at 11 30 57 am Screenshot 2023-10-16 at 11 30 10 am Screenshot 2023-10-16 at 11 21 32 am Screenshot 2023-10-16 at 11 17 02 am Screenshot 2023-10-16 at 12 38 30 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebuggingIssues related to React Native DevTools or legacy JavaScript/Hermes debuggingNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions