Is there a way to show line numbers in the Eclipse console?
My intent here is to show in the Eclipse console the file/line number that produced the output, not a se
You need to add line output to the exception handler.
For example:
... } catch (Exception e) { System.out.println(e.getStackTrace()[0].getLineNumber()); } ...
This code will print out the line that caused the exception.