Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329666 - Pin values for variables inline in editor for debugger.
Summary: Pin values for variables inline in editor for debugger.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 06:36 EST by German CLA
Modified: 2020-09-04 15:23 EDT (History)
8 users (show)

See Also:


Attachments
Debuging Inlineed Variable Values (51.48 KB, image/png)
2016-11-16 09:30 EST, Daniel Sokolowski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description German CLA 2010-11-08 06:36:03 EST
Build Identifier: 

This is a feature enhancement for the debugger experience. It would be *very* nice to be able to pin values inline in the editor like visual c++ 2010 can do.
It works like this:

You have a variable in the editor. You hover in the editor over the variable when debugging, so it appears every value inside that variable. You can now open and see the contents of each internal variable. At the right side of the variable there is an icon that says: "pin this value", that puts the value inline in the editor. You would see something like this (in source code):


myvector;         [pinned value] myvector[0] = 7


mystruct = something();      mystruct.x.z = "hello";



This way you don't need to inspect by hand every time you try to debug, making the experience better and more productive.
Thanks in advance.

Reproducible: Always
Comment 1 Marc Khouzam CLA 2010-11-08 07:32:10 EST
Where 'inline' is the value shown?  I mean, is it shown on lines where the variable is assigned, or is it always shown on one line that is currently visible, or...
Comment 2 German CLA 2010-11-15 11:11:56 EST
(In reply to comment #1)
> Where 'inline' is the value shown?  I mean, is it shown on lines where the
> variable is assigned, or is it always shown on one line that is currently
> visible, or...

Looking at the visual c++ 2010 feature you can get the exact idea I'm thinking of :-).
Comment 3 Marc Khouzam CLA 2010-11-15 11:38:09 EST
(In reply to comment #2)
> (In reply to comment #1)
> > Where 'inline' is the value shown?  I mean, is it shown on lines where the
> > variable is assigned, or is it always shown on one line that is currently
> > visible, or...
> 
> Looking at the visual c++ 2010 feature you can get the exact idea I'm thinking
> of :-).

I'm on Linux.  Maybe you can add a screenshot?
Comment 4 Daniel Sokolowski CLA 2016-11-16 09:30:53 EST
Created attachment 265377 [details]
Debuging Inlineed Variable Values
Comment 5 Daniel Sokolowski CLA 2016-11-16 09:31:15 EST
This would be a great idea, it is immensely useful and speeds up debugging. Attached is the screenshot from IntelliJ (https://www.jetbrains.com/help/idea/2016.2/inline-debugging.html)
Comment 6 Marc Khouzam CLA 2016-11-16 09:35:51 EST
I agree, this is definitely something we should look into.

I assume we'd only show basic types not structs.

And in the screenshot, what is the "(slot x)" thing?