Could anyone explain this screen:
As you can see I have simple array - debugger shows values of its elements when I use A[0], A1... but I cannot get elements with local variable A[i] (but value of "i" is shown correctly).
Project settings:
Debug info: ON
Local Symbols: ON
Optimization: OFF.
Project (one PAS file) is BUILD so DCU is fresh. You can see on that screen almost full code of this test project so there is no chance that array A or "i" is declared in some other unit etc...
Now I checked - the same code in Delphi XE3 works perfectly - debugger shows all values. It seems that XE4 has a serious bug in basic feature :-((
j:integer
variable, addingj := i
into the loop body and watchingA[j]
instead. It is exotic tome (XE2 user) to see i grayed out and i cannot see any other reason, than it being loop-variable. BTW, turning optimizations ON, would it help ? – Arioch 'TheHigh(A)
return? I'm not sure howHigh
works with associative arrays, but is it possibleHigh(A)
is returning the highest value, not highest key? If that's the case, it may be trying to accessA[2]
, and that is inaccessable – dKen