jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes getting line numbers into stack traces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "getting line numbers into stack traces" Watch "getting line numbers into stack traces" New topic

getting line numbers into stack traces

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

As soon as the stack trace hits my code, the line numbers disappear. Is there a compiler switch to use?

Richard Jensen
Ranch Hand

Joined: May 14, 2003
Posts: 67

[ June 18, 2003: Message edited by: Richard Jensen ]

N 37 33 W 122 18
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1138

Hi Mike,
Mr. Ostermiller apparently did not compile his code with the "-g" flag, that's why the part of the stack trace that deals with his classes, does not contain line numbers. I presume that the source code for Mr. Ostermiller's utilities is available. If so, I suggest you recompile his utilities -- from his source code -- using the "-g" flag.
Alternatively, he may have a "debug-enabled" version that he can give you.
Hope this helps.
Good Luck,
I agree. Here's the link: http://aspose.com/file-tools
subject: getting line numbers into stack traces
It's not a secret anymore!