Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse LogCat shows only the first letter from each message

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

an screenshot: screenshot

The problem is probably in eclipse as I can see the LogCat well while running 'adb logcat'.

I tried to restart eclipse, adb, and changing LogCat fonts.

like image 757
AK87 Avatar asked Jul 29 '14 07:07

AK87


3 Answers

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

like image 180
claganga Avatar answered Nov 18 '22 15:11

claganga


I'm creating a new answer since I don't have enough rep to comment on @claganga, that is , modifying the file on workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs

I'm using Eclipse Mars M4 and after trying the solution above with some variations I still could see a single column - although I could change from the single letter from debug level to TID's 4 digits.

However after having tried the following I got an important improvement:

ddms.logcat.auotmonitor.level=error  
ddms.logcat.automonitor=false  
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=619
logcat.view.colsize.Time=182

I'm not sure if it was moving the version line up, or removing the trailing spaces, but it started making a difference. Now I can see Level, Time, PID, Application, Tag and Text. I'm not sure how they're supposed to change their order, but at least I can resize them with a mouse now.

However I noticed the horizontal scroll bar is still completely stuck to 100%, meaning what's out of sight is out of reach. Anyway, it's good enough for me right now.

Some important things I noticed: a) don't leave trailing spaces in any of those lines - when I copy/pasted there were some. And b) order is important , though I don't know why or how.

like image 45
Fabio Avatar answered Nov 18 '22 16:11

Fabio


I had the same problem on Eclipse 4.5.0(Mars Release), i tried @claganga 's solution but didn't work for me at first.

Here is my addition to the solution that worked for me :

  1. Exit eclipse
  2. Open up the file

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

  1. Just add those lines save, close it. Restart eclipse, wait for it until loading workspace. Then Exit.

ddms.logcat.auotmonitor.level=error ddms.logcat.automonitor=false ddms.logcat.automonitor.userprompt=true logcat.view.colsize.Level=54 eclipse.preferences.version=1

  1. Open up the file at step 2 again, add the lines below step 5 one at a time. After adding one line save&close it. Restart eclipse, wait for it until loading workspace. Then Exit.

  2. Repeat the process at step 4 again for the second line, third line etc.

    logcat.view.colsize.Application=169 logcat.view.colsize.PID=54 logcat.view.colsize.Tag=198 logcat.view.colsize.Text=619 logcat.view.colsize.Time=182

like image 11
code8x Avatar answered Nov 18 '22 14:11

code8x