如何在Eclipse中单击启动多个调试会话? [英] How can I launch more than one debug session in Eclipse from a single click?

查看:82
本文介绍了如何在Eclipse中单击启动多个调试会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Eclipse编写一个GWT应用程序。 Eclipse用于开发,但我使用m2eclipse插件和带有GWT插件的Maven pom.xml来构建&运行它。



当我需要调试应用程序时,我必须:


  1. 在Maven项目(通过m2eclipse)上调用Run As ...war:expanding gwt:debug。这将启动GWT的应用程序服务器,并等待端口3408上的远程调试连接。需要等待WAR进行爆炸,这意味着可能会发生这种情况。

  2. 调用调试为...一个远程Java应用程序连接到服务器。

我已将两个目标添加到收藏夹以锁定他们下降了,但仍然是一个痛苦。



我想从一次点击而不是两个离散的动作依次启动它们。



在Eclipse中有没有办法实现这一点?

解决方案

尝试这个插件。 http://marketplace.eclipse.org/content/escripts



您可以轻松地定义Eclipse操作的脚本。您创建一个启动2调试会话的脚本,然后单击或快捷方式运行。



编辑:
插件被移动,现在称为EASE。



https://eclipse.org/ease/


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?

解决方案

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/

这篇关于如何在Eclipse中单击启动多个调试会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆