Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 245650 - [var][standard model] Copy variables: array with more than 100 entries
Summary: [var][standard model] Copy variables: array with more than 100 entries
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-29 04:33 EDT by Axel Mueller CLA
Modified: 2019-11-27 07:11 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Mueller CLA 2008-08-29 04:33:35 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. in the debug view select a variable that is an array (e.g. an array of floats)
2. right click and choose "Copy variables"
3. if array has less than 100 entries you will get something like this:
MyArray[0]  float 0.066326156 
MyArray[1]  float 0.042602807 
....

However, if your array has more than 100 entries you will get this:
[0...99]  float [197] float [197] 
MyArray[0]  float 0.066326156 
MyArray[1]  float 0.042602807 
....
MyArray[99]  float 0.01544505
[100...196] float [197] float [197] 
MyArray[100]  float 0.042602807 
MyArray[101]  float 0.015485207 
....


More information:
If I paste this array into OpenOffice I have to remove manually the lines "[100...196] float [197] float [197]". That can be very annoying if the array has some 1000 entries.
Comment 1 Darin Wright CLA 2009-06-16 13:26:35 EDT
In 3.5, the clipboard will only contain text for the expanded items. We'd really need a special copy operation for this that ignored the "synthetic group" items and copied all array entries.
Comment 2 Pawel Piech CLA 2009-06-16 13:35:31 EDT
A simple alternative would be an expand-all action.  A view preference could be used to limit the depth of the expand all and avoid a recursive expand.
Comment 3 Darin Wright CLA 2009-06-16 14:03:11 EDT
However, the other part of this request is to get rid of the "[0..99]" entries as well (I think).
Comment 4 Axel Mueller CLA 2009-06-21 07:15:33 EDT
In reply to comment #3

There are 2 things that are annoying if your array has more than 100 entries:
1) You have to expand every single set of 100 values manually.
2) After copying and pasting you have to remove all the "[0..99]" entries

I would like to have:
1)
If I select "Copy variables" on an array variable a dialog pops-up that looks like this:
First index to copy:         0
Number of entries to copy: 100 (preferable maximum size of array)

The two values should be editable.
If you have a look at the CDT plugin there is a debug option to cast a pointer to a fixed-size array. A similar dialog pops-up if you do this.

2)
The "[0..99]" entries are omitted for copying if I manually select some array values.
Comment 5 Axel Mueller CLA 2012-07-09 10:10:09 EDT
This bug is still valid for platform 4.2
Comment 6 Lars Vogel CLA 2019-11-27 07:11:14 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.