5,815,022 Members 37,738 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] How to take a logcat using debug

Tip us?
 
bomdia
Old
(Last edited by bomdia; 20th May 2014 at 07:07 PM.) Reason: stop logging
#1  
bomdia's Avatar
Member - OP
Thanks Meter 14
Posts: 59
Join Date: Feb 2012
Location: milano
Default [GUIDE] How to take a logcat using debug

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 .

italian troll
The Following User Says Thank You to bomdia For This Useful Post: [ Click to Expand ]
 
Primokorn
Old
#2  
Primokorn's Avatar
Recognized Contributor
Thanks Meter 2,248
Posts: 4,138
Join Date: Nov 2012
Location: Annecy

 
DONATE TO ME
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
Nexus 5 | Ask any questionDark XDAGetting started on XDA

LGE Nexus 5 | TWRP Recovery | OptiPurity | Uber!!!


Quote:
Searching can take less time than waiting for an answer
Tags
adb guide android logcat
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes