aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant debug parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant debug parameter" Watch "Ant debug parameter" New topic
Author

Ant debug parameter

Matt Dalen
Greenhorn

Joined: Aug 22, 2012
Posts: 15
    
    1
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: 30512
    
150

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: 15
    
    1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant debug parameter