Reputation: 599
I run react native android in genymotions , when i open JS Debugging , Chrome op http://10.0.3.2:8081/debugger-ui not http://localhost:8081/debugger-ui/ , so the genymotion log can't connect debug , why is that ? how to fix it ?
Upvotes: 4
Views: 2697
Reputation: 2478
Let's fix your problem. Please follow these steps:
Ctrl + M
to open the Dev menu, then tap Dev Settings
Debug server host & port for device
127.0.0.1:8081
or simply localhost:8081
and now reload the app. You will now be able to debug.PS: Some tutorial might have recommended you to install the Chrome extension to allow CORS, but it is not needed. The method above is simpler.
Upvotes: 6