mike castleman f643e4c3b4 Replace tabs with four spaces.
It appears that java stack dumps contain the tab character. This causes
line length computation to be messed up, so (on at least some
terminals), the lines end up wrapping twice -- once when we hit the
right edge of the terminal, and then again a few characters later when
indent_wrap() inserts a newline. By using spaces, where pidcat and the
terminal can agree on the width of the character, we obviate this
problem.
2013-07-18 16:38:04 -04:00
2013-07-18 16:38:04 -04:00
2013-06-11 23:30:21 -07:00
2013-06-12 10:28:50 -07:00

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.py com.oprah.bees.android

Here is an example of the output when running for the Google Plus app:

Example screen

S
Description
REPL version of the popular logcat script that shows log entries for a specific application package.
Readme
6.4 MiB
Languages
Python 78.7%
Shell 21.3%