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

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

问题描述

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

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. 在 Maven 项目上调用Run As ..."(通过 m2eclipse)war:exploded gwt:debug".这将启动 GWT 的应用服务器并等待端口 3408 上的远程调试连接.需要等待 WAR 爆炸意味着可能需要一分钟才能发生这种情况.
  2. 调用Debug As..."远程 Java 应用程序以连接到服务器.

我已经将两个目标都添加到收藏夹中以将它们锁定在下拉列表中,但这仍然很痛苦.

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.

Eclipse 中有什么方法可以实现这一点吗?

Is there any way in Eclipse to achieve this?

推荐答案

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

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

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.

该插件已被移动,现在称为 EASE.

The plugin was moved and is now called EASE.

https://eclipse.org/ease/

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

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