Browse - Programming Tips - How can I get line numbers into stack traces of my code?

Date: 2013nov20
Language: Java

Q.  How can I get line numbers into stack traces of my code?

A.  Use the -g option for javac.

In Ant use debug="on" like this:

<javac srcdir="${src}" destdir="${build}" debug="on"> ... </javac>