NEWS

 

 




| Printer Friendly | Post Reply
Debugging a Custom Ant Task in Eclipse

Eduard, in a new post on his blog, provides a solution to debugging a complex ant task in Eclipse. Although convention asks you to start ant in debug mode and then connect to the vm with a remote debug session from Eclipse, Eduard has an alternative method that is more direct and simple.

He recommends taking the following steps:

  • Run the build file at least once so that a run configuration is created in the 'External tools' section
  • Open the 'External tools' configuration screen
  • On the JRE tab, add -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 to the vm arguments.
  • Run this external tool configuration
  • Create a new ‘Remote Java Application’ run configuration and point it to the same port as specified above
  • Debug this run configuration

“The suspend=y vm parameter will cause ant to start up only but not to run until a connection is made on the debug port (8000 in this case). Once you make the connection with your debug session, any breakpoint set in your task code will catch,” he says.

  Read the post
 


Yatego Shopping with more than 4000 Shops and with over 1.8 Mio Products. Branchenbuch and over 500.000 Bücher. Inspiration with Themeworld and Technic. A mobilephone- and Handy Shop with Nokia Handy, Motorola Handy and Sony Handy. With our Bestseller easily find Schuhe, Jeans, Kinderschuhe or a Digitalkamera, perhaps a Canon Digitalkamera. More Bestseller: Modellbahn, Diddl and Poker. Find Schmuck or Silberschmuck as easy as an Apple Ipod, Weber Grill or an Akkuschrauber.


  About Us | Advertise | Contact | Feedback | Publisher Copyright © 2007 Software & Support Media.
Any Questions?   Imprint | Privacy Policy