Tracing and Debugging

The Eclipse platform provides a mechanism for tracking the activity of your plug-in at runtime without full debugging. It allows you to use tracing flags that will cause tracing information to be written to the log file. This log file is useful in debugging the plug-in. 

Use the following steps to trace the plug-in.

  1. Create a text file named .options and save it into the directory where your eclipse.exe file is located. For example, this could be C:/eclipse34/eclipse if this is the directory where eclipse.exe is.

 

  1. Enter the following contents into the file:

 

   com.ibm.rational.synergy.integration.connection/debug=true

   com.ibm.rational.synergy.integration.connection/debug/filter=*

The flag filter=* shows that all the classes will be traced. If you want to trace a particular class, replace * by that class name.

3.       Restart Eclipse in debug mode. If you are using a shortcut, your target will be:  C:\eclipse34\eclipse\eclipse.exe –debug. Mirror the Console View output to the command line console using consolelog option.

The output will be written to this console.