Eclipse LogCat - Not Working

后端 未结 7 2093
死守一世寂寞
死守一世寂寞 2021-02-14 16:52

This is the most frustrating thing ever, LogCat keeps deactivating/disconnecting. After running eclipse, LogCat logs for first run and after that, it goes Blank. I have to resta

相关标签:
7条回答
  • 2021-02-14 17:06

    If the LogCat is empty, the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the Devices panel (top-left screen).

    Same thing with a device. You just have to click on the entry representing that device and the log messages comes.

    0 讨论(0)
  • 2021-02-14 17:09

    For Eclipse only when LogCat isn't working:

    1 - Open Perspective "DDMS".
    2 - On the left side, click on the device you want to monitor.
    3 - Change Perspective back to "JAVA".

    0 讨论(0)
  • 2021-02-14 17:10

    If you close LogCat and re-open it it will display the information.

    0 讨论(0)
  • 2021-02-14 17:14

    I believe this other post with the same problem will answer this:

    https://stackoverflow.com/a/11967853/241014

    Essentially, set the log's buffer to a higher value by going in Eclipse to Window > Preferences > Android > LogCat. Set the "Maximum number of logcat messages to buffer" to something higher than the default of 5,000.

    enter image description here

    0 讨论(0)
  • 2021-02-14 17:20

    Although this question has been asked long before, I am answering for others who might stumble upon this trouble.

    In Mars, eclipse 4.5 and linux using GTK 3, if Android Logcat display is missing, add the following in eclipse.ini before "--launcher.appendVmargs".

    --launcher.GTK_version
    2

    May also refer these posts.
    Logcat show invisible messages in Eclipse Mars
    Eclipse GUI broken

    0 讨论(0)
  • 2021-02-14 17:25

    Most of the time Rahuls method would work, but sometimes even that doesn't work in that case, Kill the ADB and restart the eclipse.

    0 讨论(0)
提交回复
热议问题