Skip to content

Debugging Workflow

Logcat is your primary debugging tool. Android Pilot gives you powerful filtering options.

Show me the last 100 error logs from my device

Show logcat for tag “MyApp” with at least Info priority

Search logcat for “NullPointerException”

Search logcat for “OutOfMemoryError” in the last 500 lines

Show logs since 2025-01-15 10:30:00

Show error logs for tag “CrashHandler” containing “fatal” from the last 200 lines

Take a screenshot of my device

Capture a screenshot and save it to ~/Desktop/bug-screenshot.png

Record my device screen for 30 seconds

Record while reproducing a bug, then review the video.

Dump the UI hierarchy of the current screen

This returns XML showing every view, its bounds, text, and accessibility info. Useful for finding views that aren’t visible or debugging layout issues.

Run “dumpsys meminfo com.example.myapp” on the device

Run “dumpsys activity top” to see the current activity

Run “dumpsys cpuinfo” to check CPU usage