IntelliJ IDEA 12.1.0 Web Help

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.

To enable logcat
  • On the main menu, choose Tools | Android | Enable ADB Service.
To disable logcat
  • On the main menu, choose Tools | Android | Disable ADB Service.
To define the range of messages to display
  • 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:
    • Verbose
    • Debug
    • Info
    • Warn
    • Error
    • Assert

See Also

Concepts:

Procedures:

Reference:

Web Resources: