Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] How to take a logcat using debug

OP bomdia

20th May 2014, 08:03 PM   |  #1  
bomdia's Avatar
OP Member
Flag milano
Thanks Meter: 14
 
62 posts
Join Date:Joined: Feb 2012
More
HOW TO TAKE A LOGCAT USING ADB (Android Debug Bridge)

if you need help for a bug probably the developer ask you a logcat in this guide i will tell you how to do with adb and a pc.

needed:
  • a pc.
  • an android phone.
  • a usb cable to connect phone to pc.
  • adb


1) ADB (if you have already it go to next point)

for windows:


Download THIS
unzip it and copy the file in C:\Windows\

for linux:

for debian based distro's (like ubuntu)
open terminal and type :
Code:
sudo add-apt-repository ppa:phablet-team/tools&&sudo apt-get update&&sudo apt-get install android-tools-adb
2) Debug usb (on your android phone)
  • Open setting.
  • Scroll down and tap on About phone.
  • Tap build number until it say you are a developer.
  • Go back and open Developer option.
  • assure USB debugging is flagged.
  • connect phone to pc.
  • confirm on the phone the dialog.
3) Get the LogCat

for windows:


Open cmd (search it on start menu)
type into cmd :
Code:
adb logcat > logcat.txt
to stop logging close cmd or press ctrl + c
for linux:

for debian based distro's (like ubuntu)
open terminal
type into it:
Code:
adb logcat > logcat.txt
to stop logging close terminal or press ctrl + c
4) Upload the logcat

you now have 2 way to provide the logcat to a developer
the first method and most used is to Attach it to the post .
the second is to upload it on a hosting like pastebin.com .
Last edited by bomdia; 20th May 2014 at 08:07 PM. Reason: stop logging
The Following User Says Thank You to bomdia For This Useful Post: [ View ]
21st May 2014, 03:50 PM   |  #2  
Primokorn's Avatar
Recognized Contributor
Thanks Meter: 2,798
 
4,963 posts
Join Date:Joined: Nov 2012
Donate to Me
More
It would have been better to post in the General section imo.
Anyway thanks for sharing even if there's already several guides for logcats

Users have no excuse to not report a log
Post Reply Subscribe to Thread

Tags
adb guide android logcat
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes