Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I launch more than one debug session in Eclipse from a single click?

Tags:

java

eclipse

gwt

I'm currently writing a GWT application through Eclipse. Eclipse is used for development but I use the m2eclipse plugin and a Maven pom.xml with the GWT plugin to build & run it.

When I need to debug the app I must:

  1. Invoke "Run As ..." on a Maven project (via m2eclipse) "war:exploded gwt:debug". This launches GWT's app server and waits for a remote debug connection on port 3408. The need to wait for the WAR to be exploded means it could be a minute for this to happen.
  2. Invoke "Debug As..." a Remote Java Application to connect to the server.

I've already added both targets to favourites to lock them into the drop down but it's still a pain.

I'd like to launch them both in sequence from a single click rather than two discrete actions.

Is there any way in Eclipse to achieve this?

like image 676
locka Avatar asked Sep 13 '10 12:09

locka


1 Answers

Try this plugin. http://marketplace.eclipse.org/content/escripts

You can define scripts of Eclipse actions easily. You create a script of starting the 2 debug session, then run with one click or shortcut.

EDIT: The plugin was moved and is now called EASE.

https://eclipse.org/ease/

like image 156
Gábor Lipták Avatar answered Sep 25 '22 09:09

Gábor Lipták