如何使用 Ant 调试 GWT
我知道如果我使用 Google Plugin for Eclipse,工作会更简单。
然而,就我的情况而言,我大量改编了 Maven,因此该插件不适合我。 (事实上,这让我整整一周都头疼)。
相反,我依赖于从 http:// code.google.com/webtoolkit/doc/latest/tutorial/appengine.html
该文档非常清晰;我按照这篇文章并使用 ant devmode 成功调用了 DevMode。但是,该文档没有告诉我有关调试 GWT 的信息(就像 Google Plugin for Eclipse 可以做到的那样)。
基本上,我想向 ant 任务添加一些参数,以公开调试端口(类似于 (com.google.gwt.dev.DevMode at localhost:58807)),以便我可以将 eclipse 连接到。
我怎样才能做到这一点?
I know that the job would be simpler if I use Google Plugin for Eclipse.
However, in my situation, I heavily adapted Maven and thus, the plugin cannot suit me. (In fact, it gave me the whole week of headache).
Rather, I relied on a ant script that I learned from http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html
The document was very clear; I follow the article and successfully invoked DevMode using ant devmode. However, the document didn't tell me about debugging GWT (like Google Plugin for Eclipse can do).
Basically, I want to add some parameter to an ant task that expose a debug port (something like (com.google.gwt.dev.DevMode at localhost:58807)) so that I can connect my eclipse to.
How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经通过以下 ant 任务成功完成了此操作(build.xml 文件位于 GWT 项目的根目录中):
然后我创建了一个“远程 Java 应用程序”启动器,该启动器连接到该调试会话,并将“连接类型”设置为“标准”,“主机”设置为机器的主机名,“端口”设置为 8000。
虽然有一段时间没有测试它,但它之前确实工作过:)
I have successfully done this with the following ant task (the build.xml file sits in the root of the GWT project):
Then I created a "Remote Java Application" launcher that connects to that debug session with "Connection Type" set to "Standard", "Host" set to the hostname of the machine and "Port" set to 8000.
Haven't tested it in a while though but it did work before :)