Created
May 3, 2018 06:46
-
-
Save samgooi4189/8463ae68d76e157072cb1ed4a262ec70 to your computer and use it in GitHub Desktop.
Debug react native on android remotely
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question: How to debug reactnative JS remotely in android? | |
Solution: | |
Start up your android vm/ emulator | |
Navigate to you project folder and in terminal, type “react-native run-android” | |
Open chrome and visit localhost:8081/debugger-ui | |
In terminal, type “adb shell input keyevent 82” , to bring up the dev menu | |
Select “debug JS remotely” | |
Refresh chrome | |
Press ‘r’ two times in the android vm | |
You will see “DebuggerWorker.js” appear in your chrome | |
You can debug your app now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment