Logcat in eclipse keeps auto clearing

前端 未结 4 1257
温柔的废话
温柔的废话 2020-12-28 18:26

until recently my logcat has been fine but all of the sudden whenever i try to view it in eclipse it just keeps clearing itself whenever anything is displayed making it impo

相关标签:
4条回答
  • 2020-12-28 18:31

    There's a workaround for this bug. Click active mode button (usually verbose), choose another device from device list and choose previous device again. It will restore all logcat messages.

    0 讨论(0)
  • 2020-12-28 18:36

    It will show one line before erasing it to show the next one? Just click the verbose button again.

    0 讨论(0)
  • 2020-12-28 18:40

    LogCat is really annoying for this. In Ubuntu, I found the following works really well:

    Open a terminal and type adb logcat | grep MYINFO

    This will only show adb messages filtered by the MYINFO string.

    So, you can code something like:

    Log.v("MYINFO", "x" + x_value + ", etc...");
    

    This is such a relief to use. A life saver! See this for more info.

    You may find sometimes the logcat buffer repeats previous logs on starting again. To overcome this, type

    adb logcat -c
    
    0 讨论(0)
  • 2020-12-28 18:47

    The Logcat messages were simple getting cleared because the buffer had run out of space (receiving too many new messages), which is a simple setting change in Eclipse.

    To fix, go to Window > Preferences > Android > LogCat

    and increase the limit for "Maximum number of LogCat messages to buffer". Set it to 0 for unlimited size, or a really big number. But keep in mind, anything below 10000 fills up real fast.

    Been answered already: Eclipse Android - Logcat Clearing too Fast

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