更新时间:2022-03-17 09:42:48
第 1 步:通过摇动手机或在您的机器中输入此命令(如果您正在运行 Android)打开您的手机中的应用设置.
Step1: Open app Setting in your mobile by shaking your mobile or by typing this command in your machine if your running android.
adb shell input keyevent 82
Step2:选择Debug JS Remotely,这是第二个选项.第三步:在浏览器中输入 Url http://localhost:8081/debugger-ui/
步骤4:再次通过摇动或运行步骤1中显示的命令打开应用设置并选择重新加载选项,这是第一个选项
Step2: Select Debug JS Remotely which is the second option.
Step3: In your Browser type Url http://localhost:8081/debugger-ui/
Step4: Again Open App Setting by shaking or running the command shown in step 1 and select Reload option which is first option
现在您可以在浏览器中获取所有控制台日志,还可以通过放置断点并逐步分析值来远程调试您的应用.
Now You can get all console logs in the browser and also you can debug your app remotely by putting breakpoints and analyze the values step by step.