1 Reply Latest reply on Jan 26, 2003 7:33 AM by Juha Lindfors

    Debugging problem

    Mark Gargan Newbie

      Hi folks,
      This is hopefully a pretty straightforward problem. Whenever my bean throws an exception and the stack trace gets printed it gives the usual polava regarding the trace of objects and methods however it doesn't show me the line at which my bean failed instead it has [Unknown Source]. Do I include my source code so that the compiler can trace the line no? This would be of huge benefit to me as currently I have to enter in a load of printout statements to indicate how far the program gets.

      Thanks,
      Mark.

        • 1. Re: Debugging problem
          Juha Lindfors Master

          This may be a debugger specific problem but one thing to make sure is that you're not compiling your classes with the -O option which leaves debugging information out of your classes (this means the line numbers).

          If you're using ant check the optimized and debug attributes of the javac task.