Showing posts with label ant javac debug debug level. Show all posts
Showing posts with label ant javac debug debug level. Show all posts

Wednesday, January 27, 2010

ant compile without debug information by default

I've wrote a build.xml for a java project and found out that the application trace contained exceptions stack trace with "(Unknown Source)" instead of line numbers.
I found out that ant compile without debug information by default.

The way to set debug information is by adding
debug="true" debuglevel="lines,vars,source"
to the javac task.