Search code examples
eclipsetracepde

Enable Tracing for a plugin in Eclipse install


I'd like to enable tracing for org.eclipse.wst.server.core plug-in for an eclipse install. I've read that I'd require a .options file in the eclipse installation folder. The content of the .options file:

org.eclipse.wst.server.core/debug=true
org.eclipse.wst.server.core/extension_point=true

I also have -debug option specified in eclipse.ini. Here is sts/eclipse.ini contents:

-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-debug
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Xdock:icon=../Resources/sts.icns

The file is located under eclipse folder (same place where eclipse.ini is located) This doesn't work. I don't see the trace statements in the log. Anyone knows what is wrong with this setup?


Solution

  • You have to start Eclipse with the -debug option to turn this on.

    You can also specify -debug filename to specify a different path for the options file