score:2

Accepted answer

i am not sure if you missed this documentation. i used to do remote debugging in my dev mode where my server is running in the vm. i can suggest you two solutions.

if you are using a version prior to gwt 2.5 you have to give the noserver argument in launch configuration providing the url for the host page in the server (tomcat etc). i have extracted the steps from above documentation.

  1. configure your server however you need to; note the url which contains the host page for your gwt application.
  2. arrange all your static content files (such as the host html page, images, css, etc.) on the server however you like.
  3. edit your development mode execution script (such as your eclipse run configuration or the ant development build target generated by the gwt webappcreator) and add or update the following options: • add the -noserver command line argument. • change the url at the end of the argument list to match the url you recorded in step #1.
  4. compile your application once using the ant build target. ideally, you can use gwt's -war option to generate output files directly into your external server's static content folder. otherwise, you'll need to copy the the gwt output folder from war/ to your external server's static content.

if you are using 2.5 or above you can use super dev mode. in super dev mode you can debug using the browser so no need of eclipse plugin. i have tried this and worked fine. however i was unable to load the java sources using source maps. here is the documentation for superdevmode configuration.

score:-1

it's really easy, just follow these steps:

get google plugin for eclipse

the in eclipse, right click on your project and choose debug as -> web application (running on external server)

enter url of your web app on tomcat (like

http://localhost:8080/yourapp/yourapp.html

and eclipse will give you new one - it will add stuff like ?gwt.codesvr=127.0.0.1:9997 and that's it. just set up your breakpoints and debug!

also take a look on this


Related Query

More Query from same tag