Skip to content

Instantly share code, notes, and snippets.

@liron-navon
Created July 3, 2019 10:01
Show Gist options
  • Select an option

  • Save liron-navon/6a5ddb4a0e162317cd489707fc39c28e to your computer and use it in GitHub Desktop.

Select an option

Save liron-navon/6a5ddb4a0e162317cd489707fc39c28e to your computer and use it in GitHub Desktop.
how to debug a specific app with logcat
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