Logcat show invisible messages in Eclipse Mars

2019-01-24 12:13发布

问题:

My PC running on Debian Jessie & Logcat's messages are all invisible on eclipse Mars. I tried a solution here, but no help. What to do now?

---------- UPDATE ----------

I tried the followings:

  1. Change logcat/ddms's metadata settings in com.android.ide.eclipse.ddms.prefs file.
  2. Don't use GTK3 by export SWT_GTK3=0

But both failed to fix the situation.

回答1:

I had a similar problem (Eclipse Mars on Arch Linux) and it turned out to be a GTK issue. The solution was to add the following two lines

--launcher.GTK_version
2

in eclipse.ini right before the

--launcher.appendVmargs

line, as explained in https://bbs.archlinux.org/viewtopic.php?id=200053 Note that the location of eclipse.ini is distro specific (in my case it was under /usr/lib/eclipse) and multiple copies of the file in different directories can override the same setting, so make sure you are adding the lines in the right place.



回答2:

Same problem here! Arch linux with eclipse-java 4.5.0-3

My solution was this reply: https://stackoverflow.com/a/28856904/2398244

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


回答3:

There are some problems with GTK and Eclipse Mars. Try to set the SWT_GTK3 environment variable to 0 before launching eclipse:

export SWT_GTK3=0
eclipse


回答4:

I got the same issue on eclipse MARS, ubuntu14.04 and i solved the problem by modifying the file.

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

you should close the eclipse and paste following code.

ddms.logcat.auotmonitor.level=error
ddms.logcat.automonitor=false
ddms.logcat.automonitor.userprompt=true
eclipse.preferences.version=1
logcat.view.colsize.Application=200
logcat.view.colsize.Level=70
logcat.view.colsize.PID=50
logcat.view.colsize.TID=50
logcat.view.colsize.Tag=170
logcat.view.colsize.Text=300
logcat.view.colsize.Time=140

Then restart the eclipse. You could adjust by dragging the section of the Logcat as your prefer.