G
Ghost
I am trying to add some debug print statements to my java code. I
would like the print statement to display the file name and line number
from where the print statement came from.
ex)
System.out.println(fileName + ":" + lineNum + " Debug statement");
Does anyone know of a way to do this?
Thanks in advance.
would like the print statement to display the file name and line number
from where the print statement came from.
ex)
System.out.println(fileName + ":" + lineNum + " Debug statement");
Does anyone know of a way to do this?
Thanks in advance.