且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法连接远程调试器

更新时间:2022-06-22 01:05:37

在我的情况下,问题是仿真器正在向以下人员发出请求:

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

http://10.0.2.2:8081/debugger-ui

代替:

http://localhost:8081/debugger-ui并且请求失败.

要解决此问题:在模拟器上启用远程调试之前,请在Chrome中打开http://localhost:8081/debugger-ui.然后启用远程调试,并返回到chrome页面,您应该在其中查看控制台日志.

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.