How to Use ADB for Debugging: Logcat Filter, Find the Error and Read the Warning Above It #shorts

Nov 18, 2026

How to use ADB for debugging an Android app: run adb logcat, filter it to your app's tag, find the error line and read the warning just above it.

WHAT YOU NEED

  • A phone connected to ADB (adb devices shows device)
  • An app that writes logs with a tag (our demo app uses Brewly)

STEPS Reproduce the bug. Our demo app fails to place an order: no crash, just an error message. Clear the old logs: adb logcat -c, then reproduce the bug. Run adb logcat. You get every log on the phone, all mixed together. Filter it: your app's tag, the lowest level you want, and star colon S to silence the rest:
adb logcat Brewly:D *:S Read the error line: payment request failed, timeout. Read the warning just above it: the payment API timed out after ten seconds. In Android Studio, the Logcat window filters the same way. Type: tag:Brewly level:warn Filter by your tag first, then read the lines just before the error.

COMMANDS FROM THE VIDEO
adb logcat
adb logcat Brewly:D *:S
adb logcat *:W
adb logcat --pid=1234

GOOD TO KNOW

  • A filter shows the level you choose and everything above it: adb logcat *:W shows only warnings and errors.
  • To see everything your app's process writes, whatever the tag, filter by its process ID.

FAQ
What is Logcat?
Android's system log. Run adb logcat to print every log on the phone: system services, other apps and yours.

How do I filter Logcat to my app?
Use your app's tag, the lowest level you want, and star colon S to silence the rest, for example adb logcat Brewly:D *:S. In Android Studio's Logcat window, type package colon mine.

What do the Logcat priority letters mean?
V verbose, D debug, I info, W warning, E error and F fatal. A filter shows the level you choose and everything above it.

How do I see everything my app's process writes?
Filter by its process ID with adb logcat --pid followed by the number, whatever the tag.

What does adb devices print?
A list with each device's serial number and its state. The states are device (connected), offline (not connected or not responding) and no device (nothing connected).

Can ADB debug my users' phones?
Only phones connected to your computer. For bugs on users' devices, the app has to send its logs somewhere you can read them, which is what a remote logger such as Bugfender does.

Do I need Android Studio to use ADB?
No. SDK Platform Tools alone include adb. Android Studio also includes Platform Tools and keeps them updated.

What are the three parts of ADB?
A client (the adb command you type), a server (a background process on your computer that manages communication) and a daemon called adbd (a background process on each device that runs the commands).

What does adb kill-server do?
It stops the ADB server. The next adb command starts a new one, which fixes most offline and not responding states.

What does ADB stand for?
Android Debug Bridge. It's a command-line tool that lets your computer talk to an Android device: install apps, read logs and open a shell.

Which port does the ADB server use?
The server binds to local TCP port 5037 and listens for commands from adb clients. It starts by itself the first time you run an adb command.

Where do I download ADB?
SDK Platform Tools is a free download on the official Android developer site (zip files for Windows, Mac and Linux): https://developer.android.com/tools/releases/platform-tools

Why does my terminal say adb: command not found?
The platform-tools folder isn't on your PATH. Add it to your PATH, or open a terminal inside the folder and run./adb on Mac and Linux (adb on Windows Command Prompt).

ABOUT THIS VIDEO
The demo app (Brewly) is a fictional app built for this series. The Brewly screens, the adb logcat output and the Android Studio Logcat window are real captures (an Android 16 emulator and Android Studio on a Mac). The Bugfender log view is demo data with a fictional device. The opening phone background is AI-generated (ChatGPT image, animated with Magnific). The narration is an AI voice.

ADB works for phones you can plug in. When the bug happens on a user's phone, there is no cable and no Logcat. Bugfender collects your app's logs remotely from the devices where the bug happened, with the device and app version next to each line. It works next to ADB, it doesn't replace it. Over 35,000 apps trust Bugfender. Get started for free: https://bugfender.com

RELATED VIDEOS
"How to Verify Your ADB Connection"
"What Is ADB and How Does It Work?"

LINKS
Android Debug Bridge (official docs): https://developer.android.com/tools/adb
SDK Platform Tools download: https://developer.android.com/tools/releases/platform-tools
Developer options and USB debugging: https://developer.android.com/studio/debug/dev-options
Logcat command-line reference: https://developer.android.com/tools/logcat
ADB debugging guide (Bugfender blog): https://bugfender.com/blog/adb-debugging/
Bugfender: https://bugfender.com

#Shorts #AndroidDev #ADB