I have a structure with an array (var.l[60]) where some values may only use the first position of the array whereas some may use all 60. In the View Array/List tab of the Variable Viewer all 60 positions (blank or not) are displayed throughout my entire list.
It would be really nice if these could be filtered out as well.
Display non-zero does not work for arrays within structures
Arrays are different than structures. I am not knocking you about the feature request just that the current array viewer lists the contents of only 1 array at a time in a snapshot fashion. The options to exclude the empty elements is also present though this does not affect structures in arrays. If an element of any part of a structure is not zero it would show the entire structure for that index.Mistrel wrote:I have a structure with an array (var.l[60]) where some values may only use the first position of the array whereas some may use all 60. In the View Array/List tab of the Variable Viewer all 60 positions (blank or not) are displayed throughout my entire list.
For structures you view all of them at the same time with the option to expand or collapse them in the viewer. If you screened out zero valued entries your structure view would grow and shrink, you wouldn't know what was in the structure. To have additional options to eliminate just the empty elements of arrays in structures seems even more doubtful because you would have to set this for every structure and each of their arrays.
It would seem that the debugger would be bogged down and lose some of its usefulness if this was implemented. If it was done in a snapshot fashion like the array viewer it might work, something like a toggle button to eliminate from view all non-zero variables that are within structures or without. A option could be included on the array viewer too that would eliminate zero elements in structures.