IntelliJ "Debugging information not available" - how to fix it?

I have a Tomcat Java web application built into IntelliJ that calls code in another module called "Stuff". I linked the source of the corresponding code to "Stuff" so that I can go into it and click breakpoints, but I do not see the variables or their values. The clock does not work either. All I get is "Debug information is not available."

How to view debugging information?

+6
java debugging intellij-idea tomcat
source share
2 answers

I think this is related to this issue . Make sure the classes are compiled with debugging information. It can be configured in the settings | The compiler, or if you are building from Ant, you need the debug = on attribute for the javac task.

+3
source share

Compile using the following options:

javac -g:source,lines,vars 
+3
source share

All Articles