Show array element - when index is a variable - inaccesible value

167 Views Asked by At

during debbugging, why I can't view an array element? when index is a variable (arrai[i]) I get Inaccesible value issue But when index is a const number (array[1]) it works fine. Please view my picture:

enter image description here

I get the issue with any type of array (simple array of integers or strings or also with multidimensional array of objects)

I use Delphi XE4

How can I fix it?

1

There are 1 best solutions below

1
Arnaud Bouchez On

Try to disable Optimization in the Project Options when run in DEBUG mode.