logcat常用选项
adb logcat -help: 查看帮助adb logcat: 常规显示adb logcat -c: 清除日志adb logcat -g: 显示缓冲区大小adb logcat -G 256M: 修改缓冲区大小adb logcat -v time: 设置不同的显示格式adb logcat -v color: 带颜色的显示ctrl+c: 强制中断程序的执行
根据tag过滤日志
adb logcat -s xiaoxiaobai
根据pid过滤日志
- 使用
ps -A | grep com.xiaoxiaobai.app先获取进程pid - 使用
adb logcat | findstr 5568根据pid过滤日志
本文介绍了Logcat工具在Android开发中的常用选项,包括查看帮助、清除日志、控制缓冲区大小、设置显示格式和颜色,以及如何通过PID进行日志过滤的实际操作方法。
8846

被折叠的 条评论
为什么被折叠?



