javadebuggingjavac

Should Java programs compiled with debugging information not be used in a production system?


Is there any reason I should avoid compiling in debugging information with Javac in my Java classes for use in a production server? Are there any speed or security concerns I should be aware of?

Please note that I am referring to debugging information like line numbers in stack traces, not the debug level of loggers.


Related Question:


Solution

  • Do you mean compiling with the debug option? Is there a performance difference between Javac debug on and off?