Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant debug parameter

 
Matt Dalen
Greenhorn
Posts: 16
1
  • 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: 34179
340
Eclipse IDE Java VI Editor
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic