Search code examples
androidlogcat

Logcat shows messages of system and other applications but not my application?


I have a LG Optimus 4x HD and I'm trying to run my android application on it. the problem is that the logcat doesn't show any of my log messages although it shows messages of other apps as well as the system messages. I selected my device from the DDMS Perspective, enabled debugging mode on my device, don't have any filters in my logcat, tried verbose, error, ...


Solution

  • One simple solution is to restart your IDE (Eclipse or whatever you're using).

    If it does not work, please try:

    • close Eclipse (or whatever IDE you're using), any emulator instance running
    • attach your device only to USB
    • in a console/terminal you enter: adb kill-server, then adb devices (so adb will be restarted and you should see your device listed) and then adb logcat.

    You should see logs, so then launch your application from the device (not reopening the IDE).