Closed Bug 922213 Opened 11 years ago Closed 7 years ago

Improve display of arrays in VariablesView

Categories

(DevTools :: Object Inspector, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jryans, Unassigned)

Details

Currently arrays have the same display as objects, but might look better to just show an ordered list of the values instead. Obviously this falls down if the array has non-element properties, but should be an improvement for the typical case.
Component: Developer Tools: App Manager → Developer Tools: Object Inspector
No longer blocks: 912912
Severity: normal → enhancement
Won't be fixed in VariablesView. Also, not sure if this should be implemented in the ObjectInspector, as I'd like it to represent the best it can the actual object (and the indexes are part of the object). To be sure about what Ryan is talking about, the [1,2,3] array is currently displayed as : ▼ […] | 0: 1 | 1: 2 | 2: 3 | length: 3 | ▶︎ __proto__: Array [] And I think what Ryan suggests is : ▼ […] | 1 | 2 | 3 Correct me if I am wrong Ryan. Of course in this case this is pointless since the non-expanded version is self explanatory (`Array [1, 2, 3]`), but for bigger arrays/heavier items, it might make sense. This could work as a "simplified" version of the object, which you could switch to/from with some UI in the ObjectInspector maybe ?
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.