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

此生再无相见时 提交于 2019-12-28 15:58:47

问题


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?


回答1:


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/




回答2:


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

See https://stackoverflow.com/a/11905444/518491




回答3:


Why are you launching like this? Can't you just launch it by GWT plugin? Go to Run Configurations -> Web Application (the blue circle with "g" inside) and create new Run Configuration.

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

In Arguments enter -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



来源:https://stackoverflow.com/questions/3700265/how-can-i-launch-more-than-one-debug-session-in-eclipse-from-a-single-click

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!