On Mon, Apr 19, 1999 at 12:23:44PM -0700, Jason Proctor wrote:
> Hi everyone,
> 
> I've noticed that exception stack traces sometimes print helpful line
> numbers and sometimes print "Compiled Code" instead of line numbers. The
> latter is quite annoying when tracking down bugs and I was wondering what
> determines whether line numbers are included or not. It seems to be random,
> even in the code I'm writing myself!
> 
> Does anyone know what determines this, and whether there's a way of always
> getting line numbers? Thanks in advance.
> 
> J
> 
> 

Compiling your source with -g determines wether line numbers are displayed.
without -g you don't get any line numbers.

javac -g *java
or
jikes -g *java


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to