Bug 251673 - [var] sort variables by name
Summary: [var] sort variables by name
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 248028 (view as bug list)
Depends on:
Blocks: 197278 223542 248028
  Show dependency tree
 
Reported: 2008-10-22 05:33 EDT by Michael Spector CLA
Modified: 2021-06-09 05:45 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Spector CLA 2008-10-22 05:33:06 EDT
+++ This bug was initially created as a clone of Bug #248028 +++

1. debug a simple php script with more than one variable.
2. open the debug perspective
3. click on the header of the variable name column 

expected : sort variables in the variables view alphabetically 

actual : nothing happens


[Asked by user]
Comment 1 Darin Wright CLA 2008-10-22 10:57:12 EDT
Since the variables view is "vitrual" - i.e. it retrives content dynamically as content is made visible/scolled, it does not support sorting (i.e. we don't retrieve all children of a node when it is expanded). A specific debugger implementation can achieve this by sorting at the debug model level, rather than the viewer level.

Suggest to move to PHP component.
Comment 2 Michael Spector CLA 2009-06-07 03:52:21 EDT
*** Bug 248028 has been marked as a duplicate of this bug. ***
Comment 3 Steve Kelem CLA 2009-08-13 14:24:11 EDT
Huh?

I have 40 or so variables in the variable list in what appear to be a random order. It's really tedious to try to find the variables I want to look at while single-stepping through my code.

Please provide an option so the list will be in either alphabetic order or declaration order (or some other, useful order if you have one).

I understand that the variables in the list are hierarchical. Please don't break the hierarchy!
Comment 4 Darin Wright CLA 2009-08-14 09:56:20 EDT
Steve, which debugger are you requesting the feature for?
Comment 5 Steve Kelem CLA 2009-08-14 13:13:55 EDT
I'm not sure...how do I tell?  I'm using the default Ganymede setup, debugging Java code. There are a gazillion entries in the "About Eclipse Platform". Here are the ones that seem the most relevant.  Let me know if there's something else you need to get info on.

Eclipse Platform Version 3.4.2
Build id: M20090211-1700
J2EE Standard Tools (JST) 1.0.3.v2009012 org.eclipse.jst.ws.axis2tools.feature
J2EE Standard Tools (JST) 3.0.4.v2008111 org.eclipse.jst
Subclipse Integration 3.0.0
EMF - Eclipse Modeling Framework 2.4.2.v2009021 org.eclipse.emf
Comment 6 Steve Kelem CLA 2011-06-04 14:32:31 EDT
Now I'm using:
Eclipse Platform

Version: 3.6.1
Build id: M20100909-0800

(c) Copyright Eclipse contributors and others 2000, 2010.  All rights reserved.
Visit http://www.eclipse.org/platform

I'm debugging Java code.
It would be really useful if I could click on the Name header to sort the top-level variables by name. It would also be useful if I could right click on a variable that has fields and be able to sort the fields alphabetically.
Comment 7 Marc Khouzam CLA 2011-06-04 20:31:46 EDT
Sorting the variables by name is something I've long thought would be a nice feature.
Comment 8 Noe Dadon CLA 2019-06-19 07:08:15 EDT
It would be really nice to have this feature available, especially while debugging many variables it's time consuming finding the one you are looking for!
Comment 9 Sarika Sinha CLA 2019-06-19 23:07:52 EDT
If someone can provide a quality patch, we can look into it.
Comment 10 Eclipse Genie CLA 2021-06-09 05:45:40 EDT
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.