无法从Device / Genymotion连接到chrome调试器 [英] Unable to connect to chrome debugger from Device/Genymotion
问题描述
我遇到问题,我无法使用chrome调试器调试我的应用程序。使用android工作室并使用其终端太笨重和沉重。作为一个JavaScript风格的应用程序(在React本机上开发),Android Studio调试不太适合。
我可以使用chrome(高级设置)查看设备。但是,当我点击在Chrome中调试时,我会收到以下错误 -
我在我的终端中运行以下命令,以便我的设备通过反向端口转发连接 -
react-native start> / dev / null 2>& 1&
adb reverse tcp:8081 tcp:8081
我正在运行这两个命令 react-native start
& react-native run-android
,以便该应用将安装在手机上
但是,Chrome端口转发中已经进行了以下配置 -
请让我知道我在Chrome中使用的端口是否错误?在这种情况下,我做错了什么?
尝试使用此URL打开chrome中的调试器 http:// localhost:8081 / debugger-ui ,并在genymotion中使用Lollipop设备
I am having the problem where I am not able to debug my application using chrome debugger. It is too sluggish and heavy to use android studio and use its terminal. Being a javascript styled application(Developing on React native), Android Studio debugging doesn't suit well.
I am able to see the device in chrome(advanced settings). But, when I click on "Debug in Chrome", I get the following error-
Chrome connected Devices-
I am running the following commands in my terminal so that my device gets connected via reverse port forwarding-
react-native start > /dev/null 2>&1 &
adb reverse tcp:8081 tcp:8081
I am running these 2 commands react-native start
& react-native run-android
so that the app will be installed on the phone & JS bundle loads on the device.
But, the following configurations have been made in Chrome port forwarding-
Please let me know if the port that I am using in chrome wrong? What am I doing wrong in this scenario?
Try opening the debugger in chrome with this url http://localhost:8081/debugger-ui and use a Lollipop device in genymotion
这篇关于无法从Device / Genymotion连接到chrome调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!