question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugging is slow on real android device without attached debugger

See original GitHub issue

React Native version: 0.59 (but also all others)

Steps To Reproduce

  1. Use real device for testing
  2. react-native run-android
  3. 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

  1. adb shell input keyevent 82
  2. press “DebugJS remotely”
  3. see that app now performs much faster

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
IanOnFirecommented, Jul 19, 2019

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.

7reactions
emilioicaicommented, Jul 26, 2019

We are also seeing issue on RN 0.60.4 @dulmandakh, please consider re-opening as it affects all devices, no matter their specs

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found