Debugging Workflow
Logcat Filtering
Section titled “Logcat Filtering”Logcat is your primary debugging tool. Android Pilot gives you powerful filtering options.
By Priority Level
Section titled “By Priority Level”Show me the last 100 error logs from my device
Show warning and above logs
Show the last 200 logcat lines
By Tag
Section titled “By Tag”Show logcat for tag “MyApp” with at least Info priority
By Search String
Section titled “By Search String”Search logcat for “NullPointerException”
Search logcat for “OutOfMemoryError” in the last 500 lines
By Time
Section titled “By Time”Show logs since 2025-01-15 10:30:00
Combined Filters
Section titled “Combined Filters”Show error logs for tag “CrashHandler” containing “fatal” from the last 200 lines
Visual Debugging
Section titled “Visual Debugging”Screenshots
Section titled “Screenshots”Take a screenshot of my device
Capture a screenshot and save it to ~/Desktop/bug-screenshot.png
Screen Recording
Section titled “Screen Recording”Record my device screen for 30 seconds
Record while reproducing a bug, then review the video.
UI Hierarchy
Section titled “UI Hierarchy”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.
Shell Commands for Debugging
Section titled “Shell Commands for Debugging”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