react / react/react-native

[0.77] DevTools Profiler/Components doesn't initialize with JS Dev Mode off

Open
#49,180 10 comments 0 reactions 1 assignee View on GitHub

@huntie is already working on this.

Since Feb 5, 2025.

Debugging Needs: Attention Needs: Repro
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

Description

I have upgraded to react-native 0.77.0 to use the new devtools which looks awesome. Unfortunately when I try to measure performance on my app with JS Dev Mode disabled the devtools profiler won't connect. Both the Profiler and Components tab will not load. Hope I'm just missing something. This wasn't working on my project so I tried with a fresh init react-native project and found the same result.

Note: This is working with JS Dev Mode enabled.

Thanks for any information!

Steps to reproduce

For me the reproduction steps are:

  1. npx @react-native-community/cli@latest init AwesomeProject
  2. yarn start
  3. Run app on android
  4. Shake device -> Settings -> Turn JS Dev Mode off
  5. Hit "j" in terminal to open devtools
  6. Click on Profiler

Expected Result: Profiler initializes and can be used

Actual Result: Profiler fails with error "Failed to wait for initialization: it took too long"

React Native Version

0.77.0

Output of npx react-native info
System:
  OS: macOS 14.5
  CPU: (10) x64 Apple M1 Pro
  Memory: 20.52 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.19.0
    path: ~/.nvm/versions/node/v18.19.0/bin/node
  Yarn:
    version: 4.3.1
    path: ~/.nvm/versions/node/v18.19.0/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v18.19.0/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/morgantrudeau/.rvm/rubies/ruby-2.7.6/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "26"
      - "27"
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "33"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 28.0.3
      - 29.0.2
      - 29.0.3
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 34.0.0
      - 35.0.0
    System Images:
      - android-27 | Google APIs ARM 64 v8a
      - android-31 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.12816248
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/morgantrudeau/.rvm/rubies/ruby-2.7.6/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.77.0
    wanted: 0.77.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false
Screenshots and Videos

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.