News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

array enumeration in the debugger

Started by kru2z, April 29, 2009, 02:46:48 PM

Previous topic - Next topic

kru2z

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....