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.

Installation:
ADB comes with Android SDK. However, you can download ONLY the ADB files from HERE .

EDIT: as the link unfortunately does not work anymore, alternatively follow these steps

Navigate to SDK Platform Tools release notes  |  Android Studio  |  Android Developers

  1. Scroll down the page to locate the Downloads.
  2. Select Download SDK Platform-Tools for Windows and download it.

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.


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

18 Likes
[PAID] :round_pushpin: Location Service Extension
I can't show images from the internal storage in the app
App shuts randomly on POST method without a warning
Companion on phone error
App freezing when continuously logging BT addresses
[PAID] :alarm_clock: Alarm Manager Extension with Notification or Autostart
Need help for recyclerview library
The simplest AI2 compiled app "keeps stopping" on my phone
Error: Application stopped working
How do I track down the reason for the spontaneous restart of the application?
My application minimizes itself on Android 14
Firebase DB App crash
OCR extension crashes always
Enabling screen rotate without app exiting
I am not able to close my App (only one screen)
Error on player
Apk ftp mit inventor error
Base64 extension help
Please find the problem in my app
Old app no longer works
Alert function - Custom Webview
Crash app multiscreen
Collin tree list view and data from mysql - Are There limits on row numbers?
Instant notification x1 then 15 min time repeat
My app crashes after start it only lasts 1 or 2 secinds
Apk image file has occured "runtime error"
My application minimizes itself on Android 14
BLE Bluetooth extension issue
App crash with firebase db
Good day, I am using the REYAX RYBG211 Bluetooth module, the app kept on crashing when I'm using WriteString command
Crashing app on wifi view
[PAID] :round_pushpin: Location Service Extension
AI companion with TeachableMachine Extention crashes right after the launching
Firebase error only en apk
CompCreator - DynamicComponents compatibility
Need help to adding helper or drop down blocks in extension
Why is my apk fail to open?
App crashes at startup A11
Bug in Textbox object, empty string crashes app
ImagePicker Android 12
How to ask a question (open new topic)
Force closes in apk build after last update
Button misbehaving
ImagePicker not work
CompatibilitΓ  con telefonini non samsung
[FREE] Notification Style: extension with various types of notification
Need Help In Bluetooth Permission for an app on Android 12
How do you delay in blocks?
Need Help In Bluetooth Permission for an app on Android 12
App closes without error mesasge
The application stopped running
App keeps crashing and screen transitioning wont properly work even after trying numerous different things
App crashes when I open specific screen, but nothing wrong with blocks
App not installed as package appears to be invalid, TaifunNotificationListener extension
Cloudinary: An extension to upload files to Cloudinary
Getting permission for storage in internal memory in my app
Reduce image size with taifunCamera
App crashes with BLE
Start "Spotify" with "Activity starter"
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!
App is not responding, close or wait
Application crashed
Tried creating an extension in Java, it crashes when tested in App
[FREE] Pedometer with Foreground Service
What can cause the application to close on start?
What am i doing wrong
Calling a procedure crashes the App
[FREE] DragAndDropAlt - Another extension for drag and drop components on the screen
BluetoothLE exits the app
The app is stopping like that after few seconds so what are the reasons can make it hapenned to check and fix it?
Open Source β€’ Background Tasks: Itoo πŸš€
App keep stopping
Play video from another folder problem
New release causing problems with charts when compiled (not with Companion)
Crash a la hora de conectar el bluetooth
Debugging Guidance (List Index Error)
App Crashing on Connection to to BLE
Open Source β€’ Background Tasks: Itoo πŸš€
Barcode scanner not working on android 12 device
My app keeps crashing, even in AI Companion mode. Can anyone please help?
[Request] Wireless ADB Extension?
Mit app Inventor WiFi Extension code not working but not showing error
Crash detection and eventually crash recovery
Crash detection and eventually crash recovery
[OUTDATED][Free] Admob Extension - Add different types of AdMob ads in your application
How do you call and load audio file from saf (and 'load' the audio into the SpeechRecognizer)?
Integrate a second application (open an non App Inventor app from an App Inventor app)
How do you process the data received from API in ND-JSON format?
I am trying to use the web browser, however it doesn't open any websites on my chromebook
Advanced Location Sensor (Niclas Gins Free Extension) Crash
I dont know is this active
MFile extension with an app that already uses the BLE extension
[Free] JewelFilePicker Extension : Pick Any Type Of File From Storage
Receiving Images From Raspberry
App closed after start
Open Source β€’ Background Tasks: Itoo πŸš€
MIT App Inventor and 100+ esp32, how could I do this?!
Edge Collision crashing the App
SmtpClient: An extension to send emails using SMTP server
Notification Listener (powered by itoox-wrapper) and Itoo
Maintain the activity of an application in the background
Why does AI Companion keep crashing?
The application does not launch on the phone
Notification Listener (powered by itoox-wrapper) and Itoo
Application crashes (using 35 Screens)
The application does not launch on the phone
[PAID] :alarm_clock: Alarm Manager Extension with Notification or Autostart
App not responding close or wait
Open Source β€’ Background Tasks: Itoo πŸš€
Problemas con pΓ‘ginas web de radios y tv
Application won't open with data on android phone
Extension - Activity Lifecycle of an app (onPause β†’ onStop β†’ onResume)
Extension: Modified Notification Style to support Android 12 and above
Some questions about ProCamera and File extensions
I have a problem with image picker selection and spriteimage
Pourquoi l'application se ferme
AI2 companion for my apps stops suddenly without any error message
[DISCONTINUED] Extension to download a file to ASD (app-specific directory) without WRITE permission
MIT AI2 Companion Auto close : (
On Samsung A51, A52 the app try to open and then close
Access tinydb inside extension developement
ML Kit Text Recognition Extension
MediaNotification
App closes after i try to open a file
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
App crashes using these extensions
Cambio dello screen predefinito
Listening to Bluetooth, and Fetching/Sending Text Messages in the background
Issue with AI companion 2.72 and Tom Bennedum's sqlite extension
MQTT extension by Ulrich needs sdk 34 update
App non istallata
BLE NANO 33 SENSE Rev2 RegisterForByte crash
App forced stop after installation but works fine in AI companion
Problemas con la pantalla
When using a webviewer it starts loading then closes the applcation
Companion problem resurfaces
APK app doesn't open
App Keep alive always
[PAID] MlTBRek: Offline Text and Barcode recognition using ML Kit [$8 or 551]
Firebase app crashes
SMS send direkt
DrawerMenu : Create custom drawer / sidebar
Cannot find component: NameTB when opening screen
Lottie Animations : Add cool animations to your apps
Companion problem resurfaces
Is ( Taifun's ) TextBox ( extension) still relevant?
ML Kit Text Recognition Extension
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
I am creating Custom Designs list view Extension with integration of card view and recycler view
.apk built with TextRecognition Extention crashes right after the app launching
My app crashes on Android 2.3.3 phone
App does not start, java.lang.RuntimeException: Font asset not found default
Open Source β€’ Background Tasks: Itoo πŸš€
Video Player - source
ShareFileWithMessage won't share the messsage on instagram
[F/OS] ComponentsTranslate: Dynamic Component Translation for App Inventor
Automatically Returns to Other Page
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
How can i add two web in the itoo notifications?
Open Source β€’ Background Tasks: Itoo πŸš€
Wake up app when receive notification
How do you read MQTT data using a background service while main app is closed?
Component PLAYER compability with SAMSUNG GALAXY FOLD 6
App won't open a second time after importing data using ETinyDB
BluetoothLE1 Disconnect issue Background Tasks: Itoo
Receiving and sending a simple SMS
:eye: itoo Push Notification Examples for ALL!
:eye: itoo Push Notification Examples for ALL!
Monitoring a Firebase Node in the Background with iToo and Notifications
Open Source β€’ Background Tasks: Itoo πŸš€
:eye: itoo Push Notification Examples for ALL!
Open Source β€’ Background Tasks: Itoo πŸš€
Player.Source Unresponsive - API 35 (OK on 26)
[PAID] :alarm_clock: Alarm Manager Extension with Notification or Autostart
How do I send several sms, but not all at the same time?
Open Source β€’ Background Tasks: Itoo πŸš€
Need help for recyclerview library
Open Source β€’ Background Tasks: Itoo πŸš€
Open Source β€’ Background Tasks: Itoo πŸš€
:eye: itoo Push Notification Examples for ALL!
:eye: itoo Push Notification Examples for ALL!
App plays but cuts out half way through? (stops in background)
Companion crash Android 16 Pixel 7
[Free] KIO4_Base 64. Extension for File to/from Base64
Problem with aab and apk file (and with aia!)
App not working on my new phone
Help app stopped working
App Crashing Issue on ColorOS Devices When Switching Screens
πŸ”” MelonNotification β€’ Various styled notifications + Itoo
High load memory for low phones made it crashed when switching screens
Open Source β€’ Background Tasks: Itoo πŸš€
Bluetooth app works randomly
I need an extension to view front camera view, live on an image component
Background notificaton
How can I increment a variable at Midnight
Syntax Error: quote in unquoted cell. Cannot parse text argument
Problem with dynamic components apk and working
App is crashing but works well with companion
Play console / play store app publish
Crashing app on wifi view
Problem with the extension to record the screen
Activity starter - Brave browser

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
Taifun

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.