English 中文(简体)
Eclipse: Hover broken in debug perspective
原标题:

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 http://michaelzanussi.com/wp-content/uploads/2009/11/debug_hover.png

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

最佳回答

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...

问题回答

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.

I had this problem too once, I "just" had to restart eclipse, after that the hover mechanism worked again.

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.

I had a similar issue and when I came across this question. My problem was that windows hover time was set to 20s or so (you can test if this is your problem by putting the mouse on a mistake and waiting for a min or so). The registry key "MouseHoverTime" was set to a large value of 200000 ms (normally 400). Fix it by going to start -> run -> "regedit" -> HKEY_CURRENT_USERControl PanelMouse double click "MouseHoverTime" and setting it back to 400.

I think this had been done on my computer a while back to prevent hover popups in another program. Anyway, sorry that my answer doesn t directly apply to this question, but I m hoping it ll help somebody like me that comes across this thread with a similar issue.

For C++ project, please add -ggdb -0g to the compiler option. Hope this solution can help eveyry C++ programer face with the same issue.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签