简体   繁体   English

IntelliJ“调试信息不​​可用” - 如何修复?

[英]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". 我有一个内置在IntelliJ中的Java Tomcat Web应用程序,它调用另一个名为“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. 我已将相关代码的源代码附加到“Stuff”,因此我可以进入它并点击断点,但我看不到变量或它们的值。 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 | 它可以在Settings |中调整 Compiler or if you build from Ant, you need debug=on attribute for the javac task. 编译器或者如果从Ant构建,则需要javac任务的debug = on属性。

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

javac -g:source,lines,vars

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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