| [news.eclipse.tools.cdt] Re: Debug: Variable value on mouse-over? |
Axel Mueller wrote:
Toralf Lund wrote:
I seem to remember having seen variable values in "tooltips" when debugging with Eclipse. That is, when I hovered the mouse over a variable reference while displaying a C/C++ function being executed in the editor view, the current value of the variable would be displayed (like I'm used to from other debug GUIs) in that yellow popup you're all familiar with. However, all I get when I do this now, is the variable declaration.
What's supposed to happen? Was I dreaming when I thought I saw the variable value?Check your preference settings in Windows->Preferences->C++->Editor->Hovers I would suggest (just my personal opinion): Combined Hover => Alt Debugger => no key defined Source => Ctrl
Then you can hover with your mouse over a variable during debugging and a tooltip will show its value. If you press Ctrl and then hover you will see the source code (i.e. definition of the variable etc.). If you can use Alt+mouse the type of hover depends on the situation (debugging or source or something else).
Yes, that helps. Thanks.
But beware that hovering does not work well with member variables e.g. pointer->variable. You will just see the pointer address. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=200418 (please add your vote, I am waiting for this bug to be fixed for many years!).
I probably will.
Time for another bugzilla report, perhaps...
- Toralf