File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant debug parameter

 
Matt Dalen
Greenhorn
Posts: 16
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33720
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Matt Dalen
Greenhorn
Posts: 16
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic