简体   繁体   English

如何使用调试信息进行eclipse Luna编译?

[英]How to make eclipse Luna compile with debug information?

I am using java8 with eclipse Luna on Ubuntu. 我在Ubuntu上使用java8和eclipse Luna。 And I checked all the options under 我检查了下面的所有选项

Window->Preferences->Java->Compiler->Classfile Generation Window-> Preferences-> Java-> Compiler-> Classfile Generation

but eclipse still don't generate line number and I can't debug on my own code. 但是eclipse仍然没有生成行号,我无法在自己的代码上调试。 Does anybody know another settings somewhere that can fix this problem? 有没有人知道可以解决这个问题的其他设置?

Thanks, 谢谢,

It could be that your project doesn't use the settings from Preferences and has project specific settings instead. 可能是您的项目不使用“首选项”中的设置而是具有项目特定设置。

If you right-click on the project and then select "Properties"->"Java Compiler" you can see the line "Enable project specific settings" on the top. 如果右键单击项目,然后选择“属性” - >“Java编译器” ,则可以在顶部看到“启用项目特定设置”行。

If this checkbox is checked, then you have project specific settings, otherwise the settings from Preferences will be used. 如果选中此复选框,则表示您具有项目特定设置,否则将使用“首选项”中的设置。

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

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