eclipse在debug时无法显示变量值问题

网上查到的最多的方法是

Window->Preferences->Java->Editor->Hovers 将[Variable Values]选择即可,如果[Combined Hover]已经勾选,取消并勾选[Variable Values]

这种方法适用的应该不是我的这种问题,因为现在我的 [Combined Hover]已经勾选,但 debug可以正常看到值。

于是网上继续找方法,结果总算找到了!

右击工程->properties->Java Compiler->选中 "add variable attributes to generated class (used by the debugger)” 选项即可

posted @ 2017-04-21 16:52  feilingshuo1  阅读(1115)  评论(0编辑  收藏  举报