如何从另一台计算机上以开发模式检查gwt应用程序 [英] how to check gwt application in dev mode from another computer

查看:80
本文介绍了如何从另一台计算机上以开发模式检查gwt应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Mac上开发了一个GWT应用程序,现在我应该在我的电脑上用IE进行测试。然而,我不想将代码复制到PC以重建项目并最终测试它。

我也不想在Mac上设置整个Apache + Tomcat服务器来部署项目,以便我的PC可以访问web应用程序。

有什么方法可以在我的Mac上以调试模式运行我的GWT应用程序,并且只需在PC上的IE中对其进行测试?我在使用Spring + Maven + Eclipse + GWT。

解决方案

在eclipse的运行配置中,使用-bindAddress 0.0.0.0和这允许码头从本地外部接收流量。



在Eclipse菜单中


  1. 运行>调试配置...

    li>
  2. 确认您的项目在Web应用程序>项目名称下被选中。
  3. 选择右侧面板中的参数选项卡

  4. 在Program Arguments:下面添加参数-bindAddress 0.0.0.0

从这里你可以调试远程机器开发模式

I am developing a GWT application on my Mac and now I'm supposed to test it in IE on my PC.

However, I don't want to copy the codes to PC in order to rebuild the project and finally to test it.
Nor do I want to setup the whole Apache + Tomcat server on my Mac to deploy the project so that my PC can access that web application.

Is there any way I can run my GWT application in debug mode on my Mac, and just test it out in IE on my PC? I'm using Spring + Maven + Eclipse + GWT.

解决方案

In your run configuration of eclipse use -bindAddress 0.0.0.0 and this allow jetty to receive traffic from outside localhost.

In the Eclipse menu

  1. Run > Debug Configurations...
  2. Confirm your project is selected left under Web Applications > Project Name
  3. Select the Arguments Tab on the right panel
  4. Under "Program Arguments:" append the argument "-bindAddress 0.0.0.0"

From there you can debug from a remote machine in Development Mode

这篇关于如何从另一台计算机上以开发模式检查gwt应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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