Accueil > java > Simple & Useful : Remote debugging with Ant

Simple & Useful : Remote debugging with Ant

A Ant java call like :

<target name= »run »>
<java classname= »foo.bar.App » fork= »false »>
<classpath refid= »app.classpath » />
</java>
</target>

becomes :

<target name= »run »>
<java classname= »foo.bar.App » fork= »yes« >
<classpath refid= »app.classpath » />
<sysproperty key= »DEBUG » value= »true » />
<jvmarg value= »-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000″ />

</java>
</target>

and is ready to be launch and ‘remote debugged’ from a tool like Eclipse IDE.

Share and Enjoy:
  • Digg
  • Google Bookmarks
  • del.icio.us
  • Facebook
  • StumbleUpon
  • email
Categories: java Tags:
  1. Pas encore de commentaire
  1. Pas encore de trackbacks