Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
162 views
in Technique[技术] by (71.8m points)

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...