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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 1112

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: getting line numbers into stack traces
 
Similar Threads
ServletException
JBOSS 6.0 Error While Starting Up..
HTTP Status 404 Error
Quick reply does not work - java.lang.ClassCastException: java.util.ArrayList
Passing List from Servlet to jsp ? - value of list becomes NULL