Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Fast-Start Eclipse for Testing and Debugging

DZone's Guide to

Fast-Start Eclipse for Testing and Debugging

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

During the development of my Eclipse plug-in (nWire) I had to test and fine-tune the behavior of the plug-ins upon startup. It's an annoying situation: you only have one shot for testing your code. If you want to retest, you have to stop and start over. This is especially annoying when loading Eclipse takes more than 10 seconds, which is usually the case. 

I found a simple solution which allows me to have a fully functional Eclipse instance in about 2-3 seconds. It is very simple to implement and can save a lot of time (and annoyance).

The solution is simple: disable all the plugins which are not necessary for your Eclipse instance to execute properly. This task is very simple if you know how... so here goes:

  1. Create a new Launch Configuration for your plug-ins or start from an existing configuration and duplicate it. Naturally, it should be of type Eclipse Application. The fastest way to create such a configuration is to open the plugin.xml and click on "Launch as Eclipse Application".
  2. Go to the third tab titles "Plug-ins".
  3. In the top drop down "Launch With" select "plug-ins selected below only".
  4. Click on "Deselect All". 
  5. Select your plug-ins from the list. They will appear in the top section, under "Workspace".
  6. Click "Add Required Plug-ins". 
  7. Done. Click apply and you are ready to launch your configuration. 

A word of caution: this only works if you correctly define the required plug-ins for each of your newly developed plugins. If not, you will immediately notice the problem. This makes it a great way to test the correctness of your dependencies.

 

From http://blog.zvikico.com/

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}