Debugging is slow on real android device without attached debugger
See original GitHub issueReact 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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:18 (4 by maintainers)
Top Results From Across the Web
Android Studio 2.2.1: Slow Debugging - Stack Overflow
One exmaple: When I start my app without the debugger in completes one function in less than 2 seconds.
Read more >Debug your app - Android Developers
If your app is already running on your device, you can start debugging without restarting your app as follows: Click Attach debugger to...
Read more >VS16.2 Debugger slows down and stops when navigating ...
Same issue here. Both on iOS and Android. Debugging on physical devices is really really slow! Navigation from one view to another takes...
Read more >Debugging on the Android Emulator - .NET MAUI
Choosing Debug causes the debugger to attach to the application process running inside the emulator after the app starts.
Read more >Manual: Debug C# code in Unity
Disable any screen locks on the device you are using to debug your application. Screen locks cause the debugger to disconnect, and prevent...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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