我正在尝试使用Ionic框架构建Android应用。我能够看到浏览器中生成的日志。但是,在Android物理设备而不是模拟器中运行应用程序时,有没有办法在CLI中获取日志?
答案 0 :(得分:1)
使用USB连接线连接设备。在Cli中运行命令adb logcat
答案 1 :(得分:0)
There is actually a way to see the same logs (as you would when in the browser) when running the app on the actual device by running the app with ionic like this:
ionic run android -l -c
-l
switch is for livereaload
-c
switch is for console logs