react-native: Debugging is slow on real android device without attached debugger
React Native version: 0.59 (but also all others)
Steps To Reproduce
- Use real device for testing
react-native run-android
- see that app is very slow on the device
Describe what you expected to happen:
Same performance as with attached remote debugger or at least a command line option to react native cli that starts the app with debugger attached.
Workaround
adb shell input keyevent 82
- press “DebugJS remotely”
- see that app now performs much faster
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 18 (4 by maintainers)
I don’t think this is caused by hardware specs of the device, because even on high-end Android devices I experience really bad performance in debug builds.
Please do notice that this only concerns debug builds, we’re experiencing this after updating to
react-native@0.60.3
. After connecting a js debugger the expected performance will return. This problem will persist, regardless if we enable or disable the use of Hermes engine.We are also seeing issue on RN 0.60.4 @dulmandakh, please consider re-opening as it affects all devices, no matter their specs
Same.