Unable to connect with remote debugger

后端 未结 14 1296
予麋鹿
予麋鹿 2020-11-28 18:29

I\'m using React.JS and when I do react-native run-android (with my device plugged in) I see a blank page. When I shake the device and select Debug JS Rem

14条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 19:08

    In my case the issue was that the emulator was making a request to:

    http://10.0.2.2:8081/debugger-ui

    instead of:

    http://localhost:8081/debugger-ui and the request was failing.

    To solve the issue: Before enabling remote debugging on your emulator, open http://localhost:8081/debugger-ui in chrome. Then enable remote debugging and go back to the chrome page where you should see your console logs.

提交回复
热议问题