Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant - Javac Task attribute DEBUG

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have a question regarding javac task attribute DEBUG

javac srcdir="${dir}"
destdir="${dir.build}"
classpathref="class.path"
debug="on"

In the ant manual it says debug Indicates whether source should be compiled with debug information. What is debug information mean?

Thanks,
csr.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by cs reddy:
What is debug information mean?


Without debug information, the byte code doesn't contain information about the source file names, line numbers or local variable names.

The debug information is used for a more complete stacktrace of an exception, for example, or for debugers showing you the currently executed line and the content of local variables.
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was perfect. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic