简体   繁体   中英

IntelliJ “Debug info unavailable” - how to fix?

I have a Java Tomcat web application built in IntelliJ that calls code in another module called "Stuff". I've attached the source of the relevant code to "Stuff" so I can step into it and hit breakpoints, but I cannot see variables or their values. Watches don't work either. All I get is "Debug info unavailable".

How do I see the debug info?

I guess it's related to this question . Make sure the classes are compiled with the debug info. It can be tuned in Settings | Compiler or if you build from Ant, you need debug=on attribute for the javac task.

请使用以下选项进行编译:

javac -g:source,lines,vars

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM