Category filter
How to obtain Android device logs using Windows and Mac
Using Windows
Follow the steps below to obtain debug-logs from Android devices on your Windows PC.
- On your Windows Computer, download and Install Android SDK.
- Once the installation completes, Android SDK will launch automatically. Select and Install Android Platform Tools.
- Connect your Android device to your Windows PC via USB cable.
- Open a new command prompt session with administrator privileges, change the working directory to the path where Android SDK is installed (cd [path where Android SDK resides]/platform-tools).
- First, run the following command
1adb.exe kill-server - Next, run the command to list the devices connected to your PC. Note down the device id of your device.
- Run,
1adb.exe logcat -v threadtime [device id] > C:\android-debug.log
Enter the device id obtained in the previous step in place of [device id]. - Perform any actions on your Android device.
- To stop the adb process, press Ctrl + C on the command prompt window.
- The debug data can be viewed from c:\android-debug.log file.
1 |
adb.exe devices |
In case your machine does not recognize your device, try the following:
- Unplug and replug your device.
- Enable Verify apps over USB option (Settings > System > Developer Options > Debugging).
- Check if the device notification bar displays the message USB debugging connected.
- Select Revoke USB debugging authorizations to revoke access to all computers you’ve previously authorized (Settings > System > Developer Options > Debugging).
Using Mac
Follow the steps below to obtain debug-logs from Android devices on your Mac device.
On your Mac device, download and Install Android SDK.
- On your Mac device, download and install Android SDK. Once the installation completes, Android SDK will launch automatically. Select and Install Android Platform Tools.
- Connect your Android device to your Mac device via USB cable.
- Open a new Terminal, change the working directory to the path where Android SDK is installed (cd [path where Android SDK resides]/platform-tools).
- First, run the following command
1./adb kill-server - Next, run the command to list the devices connected to your PC. Note down the device id of your device.
- Run,
1./adb logcat -v threadtime [device ID] > /tmp/android-debug.log
Enter the device id obtained in the previous step in place of [device id]. - Perform any actions on your Android device or reproduce any issue you encountered.
- To stop the adb process, press Ctrl + C on the Terminal window.
- The debug data can be viewed from android-debug.log file.
1 |
./adb devices |
Need more help?