In IntelliJ IDEA, debugging of Android applications is provided through support of the logcat functionality that stores a log of system debug output. The messages include a stack trace when the emulator throws an error, so you can navigate to the exception location in the source code.
The logcat functionality is handled by the Android Debugging Bridge (adb). This service supports interaction between your development environment, Android devices, emulators and other tools, for example, DDMS. Some of these tools may conflict with IntelliJ IDEA when the logcat functionality is enabled. Therefore, before switching from IntelliJ IDEA to an adb-managed tool, you need to disable logcat or exit IntelliJ IDEA.
In IntelliJ IDEA, the logcat functionality is available through the Logcat tab of the Android tool window.
To improve the visibility of information in the tool window, you can restrict the range of messages to be displayed to a certain severity.
- At any time during the debug session, switch to the Android tool window
and select the desired message type from the Show drop-down list.
The available options are: