问题描述
我正在通过 ionic run android 将调试版本部署到我的 android 手机.
I am deploying debug builds to my android phone via ionic run android.
如何查看 console.log 消息?
推荐答案
当你将app部署到你的android手机时,你可以在google chrome中显示错误日志.
When you deploy app to your android phone, you can show the error log in google chrome.
分步说明:
- 将您的设备连接到计算机
- 运行 adb devices ("C:UsersAppDataLocalAndroidsdkplatform-tools") 以显示设备名称(您可能不需要此步骤)
- 运行谷歌浏览器并输入chrome://inspect/#devices".
- 为您的应用选择检查".