Author Topic: array enumeration in the debugger  (Read 3278 times)

kru2z

  • Guest
array enumeration in the debugger
« on: April 29, 2009, 02:46:48 pm »
Hi,
I really like using code::blocks, and it is always my environment of choice. but recently i stumbled upon a little problem (which actually made me move back to VS! lol)

When displaying an array  of structures in the debugger the enumeration is faulty - it looks like this:

[0 ]   <-- array index
   [1 ] - structure's element
   [2 ] -structure's element
   [3 ] structure's element
[4 ]  <--- array index

when in fact it should look like this:


[0 ]   <-- array index
   [0 ] - structure's element
   [1 ] -structure's element
   [2 ] structure's element
[1 ]  <--- array index

it really made the debugging harder, so maybe you guys know how to change the debugger settings? i know there is something like debugging scripts, and probably it is the gdb issue not code::blocks, but i am not proficient enough to make it myself....