2022-02-17 03:01 AM
Hello!
My case is:
I have an array of 100 items, but now I know only the first 10 are used so I'd like to watch only the first ten variables.
I know I can list the individual array items one after another (e.g, arr[0], arr[1] and so on to arr[9]), but I was wondering if there's a better way to do it.
I imagined something like
arr[0-10]
arr[:10]
arr[0], 10
arr, 10
Thanks!
Solved! Go to Solution.
2022-02-17 06:36 AM
Right click the array in the "Variable" tab -> Display as array -> choose new bounds.
If you wanted to show items 90-100, you could dereference the 90th item to get a pointer and do the same thing.
2022-02-17 06:36 AM
Right click the array in the "Variable" tab -> Display as array -> choose new bounds.
If you wanted to show items 90-100, you could dereference the 90th item to get a pointer and do the same thing.
2022-02-18 05:25 AM
Thank you so much! Exactly what I hoped.
Do you know if this is possible also in the "Live Expressions" view as it is in expressions and variables? From what I see, it can't be done.
2022-02-18 06:36 AM
2022-02-18 06:41 AM
Excellent piece of advice.
Thanks again!