File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Ant debug parameter" Watch "Ant debug parameter" New topic
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
    
  66

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Ant debug parameter
 
Similar Threads
[newbie] ant don't show warning messages
Eclipse & Ant Debug
JBuilder and Ant help
Junit / httpunit questions.
IDEs support Hibernate ???