How to debug Java code when using ANT script in Eclipse

Posted by zengr on Stack Overflow See other posts from Stack Overflow or by zengr
Published on 2010-03-09T05:15:24Z Indexed on 2010/03/09 5:21 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

Hi,

I have a java class and I need to debug it (put breakpoints and continue using F6). I am using ANT script to init, build, deploy and run the code. I am using:

<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" debuglevel="lines,vars,source">

..........

</javac>

But when I place the breakpoint in a line in my foo.java class and I run the ant script (the run part, Right Click on run-->Debug As-->Ant Build), Eclipse does not stop at that line of code.

What am I missing out?!

© Stack Overflow or respective owner

Related posts about java

Related posts about debug