aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "getting line numbers into stack traces" Watch "getting line numbers into stack traces" New topic
Author

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 ]

Richard
N 37 33 W 122 18
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1132

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,
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting line numbers into stack traces