Created
July 3, 2019 10:01
-
-
Save liron-navon/6a5ddb4a0e162317cd489707fc39c28e to your computer and use it in GitHub Desktop.
how to debug a specific app with logcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Adb shell # get into the phone's shell | |
| > pm list packages # get the list of packages, skip if you know the package name | |
| > pidof -s <package-name> # get the process ID of the package | |
| > exit # exit the shell and go back to the pc shell | |
| adb logcat --pid=<pid> # log only from a specific process ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment