Just a simple question. For ANT builds, if I leave the the debuglevel
parameter completely out will it compile with ALL debugging information? Or would it be better to include debuglevel="lines,vars,source"
in javac task? I want to enable the maximum level of debugging possible. Here's a snippet:
<javac srcdir="${dir.source}"
destdir="${dir.classes}"
deprecation="${javac.deprecation}"
debug="${veracode.release.mode}"
debuglevel="lines,vars,source" <-- should I leave this line out? -->
optimize="${javac.optimize}">
Short answer: Yes, you may leave the
debuglevel
attribute out as long as you set thedebug
attribute totrue
.From the
javac Ant task
documentation:debug
debugLevel
Therefore, setting
debug
totrue
and omittingdebugLevel
is the same as passing the flag-g
with no options appended. According to thejavac
documentation, passing the-g
flag with nothing appended is equivalent to specifying sources, lines, and vars.