Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Logcat in Terminal?

Edit/Solution: execute ./adb logcat in the platform-tools directory.


Original Question:

I know that there's a way to display the LogCat for an Android device/emulator in Terminal on my Mac, but I'm not sure what the command is. This is mostly due to my incompetence with UNIX commands.

Here are my previous failures:

adb logcat
adb.exe logcat
FULL_PATH_TO_PLATFORM_TOOLS/adb logcat
FULL_PATH_TO_PLATFORM_TOOLS/adb.exe logcat

like image 608
Mxyk Avatar asked Sep 29 '11 17:09

Mxyk


People also ask

How do I view Android logs?

Log messages can be viewed in a Logcat window in Android Studio, or you can use the command line tool to pull them. Several Android apps are also available in the Google Play store that allow easy access to these tools.


1 Answers

Ah, just adb logcat should work. You may need to do an explicit path if the Android SDK tools directories aren't in your PATH, but that should do it.

like image 154
Femi Avatar answered Sep 21 '22 07:09

Femi