views:

522

answers:

3

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable's value. Instead, hover behaves as if I were in normal Java perspective:

alt text

I've tried cleaning the project, re-importing it, etc., all to no avail. Anything I'm missing here?

+2  A: 

Go to Window - Preferences - Java - Editor - Hovers.

  1. Is "Combined Hover" selected? Uncheck it; apply; close the window; restart debugging session; go back; check it again; apply.
  2. If the above doesn't help, you can check "Variable Values" option and specify a modifier key for it. Not as convenient as "combined", but should work.
ChssPly76
Item #1 is one of the first things I checked early on, and just tried again per your suggestion. No change. However, I am not seeing "Variable Values" option under Hovers.
Michael Zanussi
Well, therein lies your problem :-) If 'Variable Values' is not listed, it's not included into 'Combined Hover' either. I have no idea why it would not be listed, though... Are you using any 3rd-party plugins? Have you tried reinstalling Eclipse?
ChssPly76
No third-party plug-ins, I'm using Eclipse straight out-of-the-box. I've also tried re-installing twice. No change. The "Variable Values" missing option is key here, I believe, so I'm heading down that path now.
Michael Zanussi
A: 

The problem was "fixed" by renaming the package.

For whatever reason, this refactoring triggered something in Eclipse, and immediately I was able to view variable values during debugging. Also, when I go back into Preferences under Hovers, I can now see the "Variable Values" option.

Michael Zanussi
A: 

I went to Window - Preferences - Java - Editor - Hovers, hit "Restore Defaults" and "Apply" and that fixed it for me, even though nothing actually changed in the settings...