how to check gwt application in dev mode from another computer

前端 未结 4 511
予麋鹿
予麋鹿 2021-02-04 03:23

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 proje

相关标签:
4条回答
  • 2021-02-04 03:38

    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

    0 讨论(0)
  • 2021-02-04 03:49

    See Debug GWT application in a remote browser.

    0 讨论(0)
  • 2021-02-04 03:56

    for maven, you can run as

    mvn gwt:run -Dgwt.bindAddress=0.0.0.0
    
    0 讨论(0)
  • set -bindAddress 0.0.0.0 in (x)=Arguments tab in "Run Configuration" as stated above. when you run your application GWT will use your computer IP in launch URL. after opening the URL in your browser, click on GWT toolbox on the right of Chrome address bar which will open "GWT Developer Plugin Options". now just add your IP to the list of webserver exceptions.GWT Developer Plugin Options

    0 讨论(0)
提交回复
热议问题