- On your android phone do this – Settings> About Phone> Tap Build Number 7 times> Go Back to Settings> Developer Options> Enable USB Debugging.
- Download Android SDK Platform Tools ZIP File for Windows
- Extract it all to an easily accessible folder like – C:\platform-tools
- Open Windows Explorer and browse to where you took out all the contents of this ZIP file Open up a Command Prompt from the same directory as this ADB binary. To do this, hold shift and right click within the folder then click, “open command window here” option. Connect your android device to the computer with a USB cable. Change USB mode to file transfer (MTP) mode.
- In the command prompt window, enter the following to launch ADB daemon – adb devices Now click on always allow USB Debugging access on your phone
- Re-enter the command from step 6, if everything went smooth you should see your device’s serial number in the command prompt
- And voila! Now you can run ADB commands on your phone.
- First make sure that the developer options are enabled on your android phone, to do that go to settings, go to About Device and then tap 7 times on the build number, this will give you developer options in the settings menu.
- Now enable USB Debugging on your device by going to the newly found Developer Options. Also make sure that the phone is not locked and is active for the duration of your log collection process.
- Now start your windows PC, and if you have not already then download Android SDK (Software Development Kit) and install it.
- This program will launch automatically, so now select and install Android Platform Tools. Now, Connect your android phone to your PC with a USB cable.
- Now open a new command prompt session, change its working directory to the path where Android SDK is installed {cd[path where Android SDK resides]/platform-tools}. Now, you will have to run this command –
- adb.exe kill-server
- Next, run the command to list the devices that are connected to your PC. Note the device id of your device
- adb.exe devices
- Now, Run – adb.exe logcat -v threadtime [device id > C:\android-debug.log] – here you will have to enter the device id that you got from the previous step in place of [device id]
- Perform any action on your android phone. In order 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).
- Clear previous logs
- adb logcat -c
- Run the application and then find the PID
- adb shell pidof -s <<gamepath>>
- Run ADB on cmd
- Start adb logcat—pid=<value>
- Replace the value found from step 3 and collect all the logs in file.txt
- adb logcat –pid=<value> >file.txt
- Unplug and replug the phone
- Enable Verify apps over USB option (Settings>System>Developer Options>Debugging).
- See if the device notification bar displays the message USB debugging connected Select Revoke USB debugging authorizations to revoke the access to every computer you had previously authorized (Settings>System>Developer Options>Debugging).
- Plug phone into iMac then unlock it
- Open Xcode
- Click on Windows>Device and Simulators
- Click on your device from left menu
- Click on console to see the real time logs
- There are 2 tabs called All Messages and Errors on the top left, click All Messages Click Clear
- Reproduce your issue
- Scroll up in console to stop autoscroll
- Copy paste the logs in TextEdit, upload it to Dropbox
- Unplug the device to stop logging process
- Click on View Device Logs to get a list of crash logs
- Email yourself the log as attachment
- Plug set into PC and run iTunes
- Click the device and sync
- Open file explorer & type %appdata% into the search bar
- Navigate to Apple computer>Logs>Crash Reporter>Mobile Device and click the device you got the crash on
- File path would be –
- C:\Users\User\AppData\Local\Packages\AppleInc.iTunes_nzyj5cx40ttqa\LocalCache\Roaming\ AppleComputer\Logs\CrashReporter\MobileDevice\
- Locate the .crash file
- Maybe instead of a .crash file you would see a Jetsam Event…ips – this file shows you are out of memory, so attach to the bug since this could be useful if there is no .crash file.