Capturing Device Logs using adb logcat

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.

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:

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

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.

Note: this guide was created by @Hossein in the Appybuilder community here. Thank you @Hossein.

I can't show images from the internal storage in the app
[PAID] :round_pushpin: Location Service Extension
App shuts randomly on POST method without a warning
App freezing when continuously logging BT addresses
Companion on phone error
Tried creating an extension in Java, it crashes when tested in App
Activity starter - Brave browser
What am i doing wrong
[FREE] Background Tasks: Itoo
Application crashed
App crashes with BLE
Instant notification x1 then 15 min time repeat
Crashing app on wifi view
Crashing app on wifi view
App is not responding, close or wait
I made a new app, made into an .apk file to install it onto my phone but it crashes all the time upon opening it!
[Free] Admob Extension - Add different types of AdMob ads in your application
Getting permission for storage in internal memory in my app
App closes without error mesasge
App crashes when I open specific screen, but nothing wrong with blocks
App keeps crashing and screen transitioning wont properly work even after trying numerous different things
App not installed as package appears to be invalid, TaifunNotificationListener extension
The application stopped running
Need Help In Bluetooth Permission for an app on Android 12
Need Help In Bluetooth Permission for an app on Android 12
Crash app multiscreen
BLE Bluetooth extension issue
[FREE] Notification Style: extension with various types of notification
ImagePicker not work
App crashes at startup A11
How to ask a question (open new topic)
(Not compatible with nb194) [Free] File Picker Extension - Pick File From Storage (2.1.6)
ImagePicker Android 12
Problem with dynamic components apk and working
Why is my apk fail to open?
[PAID] :round_pushpin: Location Service Extension
Need help to adding helper or drop down blocks in extension
Firebase error only en apk
Good day, I am using the REYAX RYBG211 Bluetooth module, the app kept on crashing when I'm using WriteString command
Advanced Location Sensor (Niclas Gins Free Extension) Crash
App crash with firebase db
Apk image file has occured "runtime error"
Alert function - Custom Webview
I need an extension to view front camera view, live on an image component
My app crashes after start it only lasts 1 or 2 secinds
I dont know is this active
Collin tree list view and data from mysql - Are There limits on row numbers?
Receiving Images From Raspberry
Integrate a second application (open an non App Inventor app from an App Inventor app)
Please find the problem in my app
Old app no longer works
Base64 extension help
Apk ftp mit inventor error
Error on player
I am not able to close my App (only one screen)
Enabling screen rotate without app exiting
OCR extension crashes always
Firebase DB App crash
How do I track down the reason for the spontaneous restart of the application?
Error: Application stopped working
The simplest AI2 compiled app "keeps stopping" on my phone
App not open used in admob components
App not open used in admob components
What can cause the application to close on start?
Problem with the extension to record the screen
Video Player - source
Syntax Error: quote in unquoted cell. Cannot parse text argument
How can I increment a variable at Midnight
Reduce image size with taifunCamera
Button misbehaving
Force closes in apk build after last update
New release causing problems with charts when compiled (not with Companion)
Play video from another folder problem
App keep stopping
Calling a procedure crashes the App
BluetoothLE exits the app
[FREE] Pedometer with Foreground Service

this is a mistake caused by the Markdown, it should be
adb logcat *:E

and if you only want to show info with some tag, try this:
adb logcat -s "YOUR TAG HERE"

thank you, I used preformatted text to correct it

1 Like

This appears to me, how can I fix it or is it ok?
Not starting debugger since process cannot load the jdwp agent.