| Author |
Ant debug parameter
|
Matt Dalen
Greenhorn
Joined: Aug 22, 2012
Posts: 9
|
|
Hey, all,
I'm fairly new to ant scripts, and I'm trying to figure out how to print line numbers when an exception is thrown by java. I've found the debug and debuglevel parameters, and they seem to be what I'm looking for. My question is, there seem to be three separate levels of debugging - lines, vars, and source - but I can't find anywhere in the ant documentation that lists the difference. Can anyone enlighten me?
Thanks.
- Matt
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26192
|
|
The javac doc page has this to say on the matter:
-g:{keyword list}
Generate only some kinds of debugging information, specified by a comma separated list of keywords. Valid keywords are:
source
Source file debugging information
lines
Line number debugging information
vars
Local variable debugging information
Amazing the difference between one word and two, isn't it?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Matt Dalen
Greenhorn
Joined: Aug 22, 2012
Posts: 9
|
|
Jeanne Boyarsky wrote:The javac doc page has this to say on the matter:
-g:{keyword list}
Generate only some kinds of debugging information, specified by a comma separated list of keywords. Valid keywords are:
source
Source file debugging information
lines
Line number debugging information
vars
Local variable debugging information
Amazing the difference between one word and two, isn't it?
Thanks, Jeanne! That makes sense.
|
 |
 |
|
|
subject: Ant debug parameter
|
|
|