Skip to content

Instantly share code, notes, and snippets.

@samgooi4189
Created May 3, 2018 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samgooi4189/8463ae68d76e157072cb1ed4a262ec70 to your computer and use it in GitHub Desktop.
Save samgooi4189/8463ae68d76e157072cb1ed4a262ec70 to your computer and use it in GitHub Desktop.
Debug react native on android remotely
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