Using adb logcat with a real phone (and not the emulator)

  1. Enable USB debugging on your device.

  2. Connect the device to computer

  3. Use these commands:

Get the “device id”

adb devices

example:

$ adb devices
List of devices attached
5856423841563398    device
emulator-5554   device

To specify the device when using logcat

adb -s "device id" logcat

example:

$ adb -s 5856423841563398 logcat
--------- beginning of crash
03-31 15:56:51.174 13547 13547 E AndroidRuntime: FATAL EXCEPTION: main

Leave a Comment