How to start multiple debugging sessions in Eclipse with one click?

I am currently writing a GWT application through Eclipse. Eclipse is used for development, but I use the m2eclipse plugin and Maven pom.xml with the GWT plugin to create and run it.

When I need to debug an application, I have to:

  • Call "Run As ..." in the Maven project (via m2eclipse) "war: exploded gwt: debug". This starts the GWT application server and waits for a remote debugging connection on port 3408. The need to wait until the WAR is detonated means that this may be a minute for this.
  • Call the "Debug As ..." Remote Java application to connect to the server.

I already added both goals to my favorites to block them in the drop-down list, but it's still a pain.

I would like to run them in a one-click sequence, and not from two discrete actions.

Is there a way in Eclipse to achieve this?

+7
java eclipse gwt
source share
3 answers

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

You can easily define Eclipse action scripts. You create a script to start 2 debugging sessions, then run one click or shortcut.

EDIT: The plugin has been moved and is now called EASE.

https://eclipse.org/ease/

+4
source share

"Launch Groups" are part of the CDT. Officially supported, easy to install.

See https://stackoverflow.com/a/2128778

+1
source share

Why are you running this? Can't you run it with the GWT plugin? Go to Run Configurations Web Application (blue circle with a "g" inside) and create a new launch configuration.

In it, on the Home tab, enter (or select) the project and enter com.google.gwt.dev.DevMode in the Main class.

In the "Arguments" type -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -port 8888 -war path_to_your_dir_with_WEB-INF_directory com.package.your.Module

0
source share

All Articles