I successfully completed this with the following ant task (the build.xml file is in the root directory of the GWT project):
<target name="devmode" description="Run development mode">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode">
<classpath>
<pathelement path="${project.class.path}" />
<pathelement path="${project.src.path}" />
</classpath>
<jvmarg value="-Xmx512M" />
<jvmarg value="-Xdebug" />
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" />
<arg value="-startupUrl" />
<arg value="http://localhost/whatever" />
<arg value="-noserver" />
<arg value="-war" />
<arg value="." />
<arg value="-logLevel" />
<arg value="DEBUG" />
<arg value="com.example.Application" />
</java>
</target>
Then I created a “Remote Java Application” launcher that connects to this debugging session with “Connection Type” set to “Standard”, “Host” set to the host name of the machine, and “Port” set to 8000.
Did not test it after a while, but it worked before :)
source
share