I used Fender's style above, but selected to "Watch" a variable. Once in the Expressions tab, I just moved over to the Variables tab and Voila - variables back in business.
关于 Eclipse 版本: Luna Service Release2(4.4.2)
Build id: 20150219-0600我注意到不仅变量视图是空的,而且导航执行的按钮(F5,F6,F8功能按钮)也被禁用。在这种情况下,转到“调试视图”,右键单击带有黄色暂停符号的行,然后选择“恢复”这样的选项。在下一个断点上,变量视图将自动完成,并启用执行导航按钮。无法解释原因
Double-Click the Expressions tab (the actual tab with the text, not the 'window bar'). This will maximise it. Repeat to restore it to previous size/location. That should reset everything except Expressions. Repeat for the variables tab and it will reset expressions.
可能有不同的原因。
对于我的案例,变量值显示已经工作了很长时间。然后有一天,它在同一行代码中停止工作了。我发现罪魁祸首是已中止但仍然挂在 Windows 文件资源上的 JUnit 测试线程。
After closing all Windows applications(including Eclipse), I found there were a couple of directories (under JUnit test resource directory) which I can't delete because some files there were locked for unknown reason.
因此,我尝试了 Windows 重新启动,修复了 Eclipse 调试问题。