在远程浏览器中调试 GWT 应用程序 [英] Debug GWT application in a remote browser
问题描述
我尝试在远程浏览器(位于 Eclipse 实例以外的其他计算机上)中调试 GWT 应用程序,例如在 VMware 环境中.不幸的是,在下面打开地址时没有连接.
I try to debug the GWT app in a remote browser (located on other computer than Eclipse instance) for example in VMware environment. Unfortunately while opening address below there is no connection.
http://192.168.1.2:8888/app_test.html?gwt.codesvr=192.168.1.2:9997
我尝试将 -Dgwt.args="-bindAddress 0.0.0.0"
添加到 Arguments -> VM arguments,但该参数似乎无法识别.服务器仍然绑定到本地主机.
I've tried adding -Dgwt.args="-bindAddress 0.0.0.0"
to Arguments -> VM arguments but the parameter seems to be unrecognized. Server still binds to localhost.
我使用 Google Eclipse 插件.感谢您的帮助.
I use Google Eclipse plugin. Thank you for any help.
推荐答案
在 Eclipse 中打开您的调试配置并添加参数 -bindAddress 192.168.1.2
(将 ip 替换为您的本地 ip 地址machine) 到 参数 >程序参数
.这就是我们在虚拟框中调试的方式.
In eclipse open your debug configuration and add the param -bindAddress 192.168.1.2
(replace the ip with the local ip address of your machine) to the arguments > program arguments
. That's how we debug in virtual box.
这篇关于在远程浏览器中调试 GWT 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!