⌥+⌃AltPlusCtrl

How to Use Logcat in Android Studio (Alt+6 / Cmd+6)

Windows: Alt+6
Mac: Cmd+6
Linux: Alt+6
Alt+6 (Cmd+6 on Mac) opens the Logcat panel, Android Studio's real-time viewer for system and app-level log output streaming from whichever emulator or connected device is currently running, essential for diagnosing crashes and tracing app behavior beyond what breakpoint-based debugging alone reveals. **What appears in Logcat**: every log line printed by the Android system itself, by your own app's explicit log statements (via android.util.Log calls at various severity levels — Verbose, Debug, Info, Warn, Error), and by any other apps or system processes running on the same device, all interleaved in one continuous, timestamped stream. **Filtering to make sense of the noise**: because Logcat by default shows output from the entire device, not just your app, filtering by process/package name and by minimum log level (showing only Warn and above, for instance) is essential on anything beyond a completely bare device — Android Studio's Logcat panel provides both a package filter dropdown and a search/filter text field for narrowing the stream to what's actually relevant. **Crash stack traces appear here automatically**: when an unhandled exception crashes your app, Android's runtime prints a full stack trace to Logcat even without a debugger explicitly attached, making Logcat often the very first place to look after a crash, before even setting up breakpoints to investigate further. **Logcat versus breakpoint debugging — complementary, not competing**: a breakpoint freezes the whole app to give you a deep look at one instant in time, whereas Logcat just keeps streaming everything that happens for as long as the app keeps running — useful for understanding behavior over time or for issues that only reproduce over an extended running session where pausing execution repeatedly would be impractical. **Related shortcuts**: Ctrl+F8 (Cmd+F8) to set a breakpoint for deeper inspection once Logcat output points you toward a specific suspect area of code, and Shift+F9 (Ctrl+D) to launch with the debugger attached from the start. **Saving Logcat output for later analysis**: the panel includes an export option for saving the current filtered log stream to a text file, useful for sharing a specific crash's surrounding log context with a teammate or attaching it to a bug report without needing them to reproduce the issue themselves on their own device. **Regex-based filtering for advanced searches**: beyond simple package-name and log-level filtering, Logcat's search field accepts regular expressions for more precise filtering — useful for isolating log lines matching a specific pattern (like a particular tag combined with a specific error code) that a simple substring search couldn't express. **Logcat with more than one device attached**: when multiple emulators or physical devices are connected at once, Logcat can display output from just one selected device at a time or, in some configurations, multiple devices in separate tabs, which matters when debugging a sync or multiplayer feature that requires observing behavior across two devices at once rather than assuming Logcat always shows everything from every connected device merged into one stream. Building fluency with filtering and export together turns Logcat from a firehose of noise into a genuinely fast diagnostic tool.

Related shortcuts