views:

53

answers:

1

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

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.

I use Google Eclipse plugin. Thank you for any help.

+2  A: 

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.

z00bs
z00bs, where do you suggest to add the'-bindAddress 192.168.1.2' param? When I try to put this into (Eclipse) `Run Configurations... -> Arguments -> Program arguments` I've got 'Unknown argument: -bindAddress'.
rybz
The solution for the problem mentioned above is to user GWT SDK version 2.0.4 (for 2.0.0 bindAddress won't work). z00bs - thank you.
rybz
You're welcome! I didn't know `bindAddress` requires a specific gwt version. Thanks for pointing that out.
z00bs