Page 1 of 1

How to start Jetty in debug mode

Posted: Sun Mar 24, 2013 4:37 am
by Sambhav
How can I start jetty in debug mode while using eclipse.

Thanks
Sambhav

Re: How to start Jetty in debug mode

Posted: Mon Apr 22, 2013 10:52 pm
by phillipuniverse
Simply run the jetty-demo ant task in build.xml.

The frontend application (site) listens on debug port 8000 and the admin listens on port 8001.

Re: How to start Jetty in debug mode

Posted: Fri May 03, 2013 6:02 am
by surender
Hi Phillip,
Eclipse not able to recognize the Break points which kept in demo site.But the semo site (heat clinic) is up and running.
I started the jetty server through ANT jetty-demo task.And i tried on other way by changing the ant tak jvmarg value as like below also but still no result.

please help me on this.

<target name="jetty-demo" depends="start-db">
<delete dir="war/WEB-INF/lib"/>
<artifact:mvn mavenHome="${maven.home}" fork="true">
<jvmarg value="-XX:MaxPermSize=256M" />
<jvmarg value="-Xmx512M" />
<jvmarg value="-Xdebug" />
<jvmarg value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y" />
<jvmarg value="-javaagent:${spring.instrument.path}" />
<arg value="compile"/>
<arg value="war:exploded"/>
<arg value="jetty:run"/>
</artifact:mvn>
</target>

Re: How to start Jetty in debug mode

Posted: Tue May 07, 2013 4:02 pm
by phillipuniverse
Looks like you have changed the debug port that the application listens on. You ahve this configuration:

Code: Select all

<jvmarg value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y" />


Which tells the JVM to listen on port 4000. Then you can debug just like any normal Java remote application (more info: http://help.eclipse.org/juno/index.jsp? ... config.htm).