unity android设备上查看log输出

来源:互联网 发布:淘宝三只松鼠 编辑:程序博客网 时间:2024/05/22 00:29

使用[adb] logcat [option] … [filter-spec] … 命令。

1. -s 指定过滤器

adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG

2. 如果出现error: more than one device/emulator,需要adb -s deviceName指定设备,

adb devices 得到设备名 MyAndroidadb -s MyAndroid logcat -s Unity 

3. -f 输出log到指定文件

adb -s deviceName logcat -s Unity  -f c:\unity_log.txt
0
0 0
原创粉丝点击