Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting line numbers into stack traces  RSS feed

 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 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
  • 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
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!