根据 package 查看 logcat 日志,强大,推荐,Mac已经通过测试,好用,高大上,可以先看下我的截图
安装过程截图:
使用:输入pidcat 你要查看的包名 例如:pidcat com.tb.demo
PID Cat
An update to Jeff Sharkey's excellent logcat color script which only shows log entries for processes from a specific application package.
During application development you often want to only display log messages coming from your app. Unfortunately, because the process ID changes every time you deploy to the phone it becomes a challenge to grep for the right thing.
This script solves that problem by filtering by application package. Supply the target package as the sole argument to the python script and enjoy a more convenient development process.
pidcat com.oprah.bees.android
Here is an example of the output when running for the Google Plus app:
Install
Get the script:
-
OS X: Use Homebrew.
brew install pidcatIf you need to install the latest development version
brew unlink pidcat brew install --HEAD pidcat -
Others: Download the
pidcat.pyand place it on your PATH.
Make sure that adb from the Android SDK is on your PATH. This script will not work unless this is that case. That means, when you type adb and press enter into your terminal something actually happens.
To include adb and other android tools on your path:
export PATH=$PATH:<path to Android SDK>/platform-tools
export PATH=$PATH:<path to Android SDK>/tools
Include these lines in your .bashrc or .zshrc.
PID Cat是一款方便开发者查看特定应用日志的工具,通过应用包名过滤日志,尤其适用于Mac环境。安装后,输入`pidcat`加上应用包名即可。本文介绍了安装过程和示例。

1968

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



