RSS

HowTo use ADB to monitor logs

29 Jun

logo

Join Community: http://Community.AppyBuilder.com

ADB is a command-line utility that that can be used to control your device over USB from a computer. It will allow you to install / uninstall and or view logs on your device. This could be very handy when there are issues with a specific app and you like to view the logs for information that may lead to identify the cause of error.

In this post, we’ll discuss how to install and use ADB.

Installation:
ADB comes with Android SDK. However, you can download ONLY the ADB files from HERE. Download it from the link and copy into a file like c:\tools\adb
Using this approach, there are no specific installation that are needed. Just copy files onto a folder like:
c:\tools\adb

Usage:
There are times that it would be necessary to view / monitor logs on your device. To accomplish this, you need to use a USB cable and enable debugging on your device. Follow instruction HERE for enabling USB debug.

Next, shell to DOS and CD to folder that you installed ADB:
cd c:\tools\adb

To start ADB, enter:
adb logcat

Above command will start displaying logs. Now you can start any app and then view / capture the log out.
To narrow down the amount of logs, you can change the Log Level. For example, if you log to only view ERRORS, enter:
adb logcat *:E

For a list of ADB commands, visit site HERE

Recommendation:
An alternative to DOS Command Window is ConEmu which can be downloaded from sourceforge HERE. It includes multi-tab features and ability to easily copy the logs.

Website: http://AppyBuilder.com

Use AppyBuilder GOLD for FREE: http://FreeGold.AppyBuilder.com

Share, Like us below 🙂

Advertisements
 
1 Comment

Posted by on June 29, 2017 in Uncategorized

 

One response to “HowTo use ADB to monitor logs

  1. faisaljamilanjum

    June 30, 2017 at 12:25 pm

    Thanks for sending me this mail On Jun 29, 2017 4:41 PM, “Hossein Amerkashi’s Blog” wrote:

    > Hossein Amerkashi posted: ” http://Community.AppyBuilder.com ADB is a > command-line utility that that can be used to control your device over USB > from a computer. It will allow you to install / uninstall and or view logs > on your device. This could be very handy when there are issues” >

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: