Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 283842 - Debugger mouse hover does not work (for a simple variable.)
Summary: Debugger mouse hover does not work (for a simple variable.)
Status: RESOLVED DUPLICATE of bug 255026
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 0 DD 1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Marc Khouzam CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 08:49 EDT by Toralf Lund CLA
Modified: 2010-04-21 06:51 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Lund CLA 2009-07-17 08:49:55 EDT
Build ID: 20090619-0625

Steps To Reproduce:
1. Set up a debug configuration of type C/C++ Application, with launcher set to "Standard Create Process Launcher"...

2. Enter Window Preferences->C/C++->Editor->Hovers.
Make sure Debugger is marked (ticked), that it's modifier key field is empty, and that there are no other active hovers without a modifier key (just to rule out issues related to modifiers.)

3. Start the debug configuration.

4. When the debugger stops in main, move the mouse pointer over "int argc" in the main function heading (presuming it has the standard declaration of int main(int argc, char* argv[])

5. Stop the debugger.

6. Open the configuration page for the debug configuration in question, then change launcher type to "GDB (DSF) Create Process Launcher".

7. Repeat steps 3-4

Expected results:
A popup containing a text like "argc = 1" appears in step 4.
Actual results:

The popup appears in the original step 4, but when repeating in step 7, nothing happens.
Comment 1 Marc Khouzam CLA 2009-07-17 10:29:38 EDT

*** This bug has been marked as a duplicate of bug 255026 ***
Comment 2 Axel Mueller CLA 2009-12-23 06:23:39 EST
Please reopen this bug. Bug #255026 did not solve the problem mentioned in the original post: "There is no hover if no modifier key is defined". The current hover only works if you define a modifier key.
Comment 3 Anton Leherbauer CLA 2010-01-07 03:38:02 EST
I think this is actually a duplicate of bug 294351.
I.e. in CDT 6.0 the DSF debugger had no hover support at all.
Comment 4 Axel Mueller CLA 2010-01-07 15:59:41 EST
(In reply to comment #3)
> I think this is actually a duplicate of bug 294351.
> I.e. in CDT 6.0 the DSF debugger had no hover support at all.
I guess my comment was unclear. I have tested the HEAD version which includes both patches for bug #294351 and #255026. The hover works indeed if I define a modifier key, e.g. ALT. So when I press ALT and hover with the mouse over a variable the debug hover appears. But I prefer to work w/o modifier key and want to just hover the mouse over the variable. This works with standard (non-DSF) debugger and the Java debugger but not with the DSF debugger (as implemented in the current HEAD version).
Should I open a new bug report or add my comments to bug #294351?
Comment 5 Marc Khouzam CLA 2010-01-07 20:10:08 EST
(In reply to comment #4)
> (In reply to comment #3)
> > I think this is actually a duplicate of bug 294351.
> > I.e. in CDT 6.0 the DSF debugger had no hover support at all.
> I guess my comment was unclear. I have tested the HEAD version which includes
> both patches for bug #294351 and #255026. The hover works indeed if I define a
> modifier key, e.g. ALT. So when I press ALT and hover with the mouse over a
> variable the debug hover appears. But I prefer to work w/o modifier key and
> want to just hover the mouse over the variable. This works with standard
> (non-DSF) debugger and the Java debugger but not with the DSF debugger (as
> implemented in the current HEAD version).
> Should I open a new bug report or add my comments to bug #294351?

I don't know how to define a modifier key, but for me, I just need to hover without pressing anything and I get the hover to show with DSF-GDB.
Comment 6 Anton Leherbauer CLA 2010-01-08 02:28:09 EST
(In reply to comment #4)
> I guess my comment was unclear. I have tested the HEAD version which includes
> both patches for bug #294351 and #255026. 

It works for Marc and me.
The issue sounds a little like bug 294812.  Maybe your workspace does not contain this fix?
Comment 7 Axel Mueller CLA 2010-01-08 07:25:09 EST
(In reply to comment #5)
> I don't know how to define a modifier key, but for me, I just need to hover
> without pressing anything and I get the hover to show with DSF-GDB.
OK, it is working now. In Preferences->C/C++->Editor->Hovers Debugger was selected instead of GDB Debugger. 
However, is this behavior intended to have 3 options: "GDB Debugger", "Debugger" and "Debugger" (different descriptions!)?
Comment 8 Marc Khouzam CLA 2010-01-08 09:18:02 EST
(In reply to comment #7)
> (In reply to comment #5)
> > I don't know how to define a modifier key, but for me, I just need to hover
> > without pressing anything and I get the hover to show with DSF-GDB.
> OK, it is working now. In Preferences->C/C++->Editor->Hovers Debugger was
> selected instead of GDB Debugger. 
> However, is this behavior intended to have 3 options: "GDB Debugger",
> "Debugger" and "Debugger" (different descriptions!)?

I was not aware of that preference!  Cool.
I suggest you use the Combine Hover.
I'm not sure why there are three hovers for Debugging...  We should look into that.
Comment 9 John Cortell CLA 2010-04-20 17:34:31 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #5)
> > > I don't know how to define a modifier key, but for me, I just need to hover
> > > without pressing anything and I get the hover to show with DSF-GDB.
> > OK, it is working now. In Preferences->C/C++->Editor->Hovers Debugger was
> > selected instead of GDB Debugger. 
> > However, is this behavior intended to have 3 options: "GDB Debugger",
> > "Debugger" and "Debugger" (different descriptions!)?
> 
> I was not aware of that preference!  Cool.
> I suggest you use the Combine Hover.
> I'm not sure why there are three hovers for Debugging...  We should look into
> that.

There's actually a fourth called "Debug Text Hover". What's happening is that each of the following four debugger plugins is contributing an "org.eclipse.cdt.ui.textHovers" extension.

   EDC
   DSF
   CDI-GDB
   DSF-GDB

They all rely on the 'org.eclipse.cdt.debug.core' plugin, so perhaps we could consolidate them. I'll take a quick look but can't promise anything.
Comment 10 Axel Mueller CLA 2010-04-21 06:51:37 EDT
(In reply to comment #9)
> There's actually a fourth called "Debug Text Hover". What's happening is that
> each of the following four debugger plugins is contributing an
> "org.eclipse.cdt.ui.textHovers" extension.
> 
>    EDC
>    DSF
>    CDI-GDB
>    DSF-GDB
> 
> They all rely on the 'org.eclipse.cdt.debug.core' plugin, so perhaps we could
> consolidate them. I'll take a quick look but can't promise anything.
I already filled a bug about this. See #309001