File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting line numbers into stack traces

 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As soon as the stack trace hits my code, the line numbers disappear. Is there a compiler switch to use?

 
Richard Jensen
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ June 18, 2003: Message edited by: Richard Jensen ]
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic