When your program halts for an out-of-bounds array, why
does it not tell you what the element of the array equalled?
for example, this line:
...goes out of bounds, but I have no idea what part is out of
bounds. I could write a Proceed() to test each variable in
each loop, but I'd be hitting 'Ok' a thousand times before
getting the error.
What other debug methods would be useful in this situation?
[edit] By the way, what can Throw/catch/assert do that a
simple If-Statement can't?
does it not tell you what the element of the array equalled?
for example, this line:
scenery[lastSlot].CollisionMap [xS,yS]= (argb Shl 24) Shr 24
...goes out of bounds, but I have no idea what part is out of
bounds. I could write a Proceed() to test each variable in
each loop, but I'd be hitting 'Ok' a thousand times before
getting the error.
What other debug methods would be useful in this situation?
[edit] By the way, what can Throw/catch/assert do that a
simple If-Statement can't?