Eclipse LogCat shows only the first letter from each message

后端 未结 12 1654
萌比男神i
萌比男神i 2020-12-09 04:00

I installed android SDK and plugin on eclipse 4.4, and LogCat shows only the first letter from each message.

an screenshot:

相关标签:
12条回答
  • 2020-12-09 04:24

    If you use Eclipse Andmore the file for this problem is:

    org.eclipse.andmore.ddms.prefs

    0 讨论(0)
  • 2020-12-09 04:25

    Here is how to fix it:

    1. exit eclipse
    2. open up the file

      ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs

    3. Then cut and paste this in over the existing

      ddms.logcat.automonitor.level=error
      ddms.logcat.automonitor=false
      ddms.logcat.automonitor.userprompt=true
      logcat.view.colsize.Level=54
      eclipse.preferences.version=1
      logcat.view.colsize.Application=169
      logcat.view.colsize.Time=156
      logcat.view.colsize.Tag=124
      logcat.view.colsize.PID=54
      logcat.view.colsize.Text=590
      
    4. Restart eclipse

    0 讨论(0)
  • 2020-12-09 04:26

    goto your logcat move your bottom scroll bar towards right then on top you can drag your LEVEL section towards left and make room for other section it will surely work

    0 讨论(0)
  • 2020-12-09 04:27

    Like @Fabio says, don't leave trailing spaces in any of the property lines.

    This is very important!!!

    After ensuring that, you can customize the colsize of each col of these(I don't know if there're others, but I've met only these):

    logcat.view.colsize.Application
    logcat.view.colsize.Level
    logcat.view.colsize.PID
    logcat.view.colsize.TID
    logcat.view.colsize.Tag
    logcat.view.colsize.Time
    logcat.view.colsize.Text
    

    You don't need to care about the order of these properties because eclipse will sort them according to the alphabet.

    I don't know the situations in the other systems or machines, but in my Ubuntu system, the minimum sum of all colsizes is 942. And you can set your colsize beyond that which will cause the horizontal scroll bar to display not 100%.

    Hope my advice can help someone:)

    0 讨论(0)
  • 2020-12-09 04:27

    The settings that worked for me are the following:

    ddms.logcat.auotmonitor.level=error
    ddms.logcat.automonitor=true
    ddms.logcat.automonitor.userprompt=true
    eclipse.preferences.version=1
    logcat.view.colsize.Application=169
    logcat.view.colsize.Level=54
    logcat.view.colsize.PID=54
    logcat.view.colsize.Tag=198
    logcat.view.colsize.Text=676
    logcat.view.colsize.Time=156
    

    ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs

    0 讨论(0)
  • 2020-12-09 04:32

    For me all solutions worked after adding the attribute:

    logcat.view.colsize.Text
    

    If it was missing, only the level was shown. This attribute is missing in the marked correct answer.

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