Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 121641

Summary: Errors in CDT console view when hovering while debugging
Product: [Tools] CDT Reporter: Allan Pratt <apratt>
Component: cdt-debug-cdi-gdbAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Rekha.Deshmukh
Version: 3.0.1   
Target Milestone: ---   
Hardware: Other   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
enhancement for debug text hovering none

Description Allan Pratt CLA 2005-12-20 17:17:40 EST
While in the CDT debug perspective, when you hover over program text (e.g. a variable name) you can see the value of that variable. However, when you hover over something that is NOT a variable name, or where there is no variable in scope with that name, an error line appears in the debugger's console view.

This is distracting and meaningless.

For example, hover over the word "return" in a function and you will see the Console view switch from the program's output to the debugger's status, and you will see this text: No symbol "return" in current context.

(I am debugging on Linux, which isn't one of the platform choices. I assume this behavior is the same on any platform, though.)
Comment 1 Tarek Sammoud CLA 2007-12-10 12:11:17 EST
Created attachment 84880 [details]
enhancement for debug text hovering

The patch checks if the hovered text needs to be evaluated. It's a sort of filter placed prior to the evaluation.
This approach reduces significantly the number of errors in the console view.
Comment 2 Jonah Graham CLA 2017-10-23 13:42:52 EDT
(this is part of a batch change)

The CDI debug implementation has been removed in CDT 9.0. Please see bug 484900 and the entry on the New and Noteworthy page https://wiki.eclipse.org/CDT/User/NewIn90#API_modifications