mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
f643e4c3b4897d9d1fc3488295e987deca534111
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.
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:
Description
REPL version of the popular logcat script that shows log entries for a specific application package.
6.4 MiB
Languages
Python
78.7%
Shell
21.3%
