Bug #6687 2006-03-06 22:46

ceniza

C Arrays

Debugging an application I found the debugger plugin has non-fatal problems with C arrays.

Yiannis says the plugin has not support for them yet, even though it "tries to".

Something as simple as debugging a program with the following line in it:

bool values[5] = { true, true, false, false, true };

will add to the watches window the variable "values" an will show it like this:

- Local variables

- values

true

false

Well, for not having support it's showing something: two out of five values.

The funny thing is: what is it really showing? values[1] and values[2]?

Category
Debugger
Group
 
Status
Closed
Close date
2006-09-28 12:17
Assigned to
mandrav
mandrav 2006-03-07 09:04

Hmm, on closer inspection it is a bug.

It has to do with an optimization that doesn't allow duplicate items in the same tree level. So, trying to display the five bool values, it only displays the distinct ones: true and false.

I 'll have to rethink about this process.

Thanks for pointing this out.

ID_24639 2006-08-02 20:36

I think this works now (just tried it). The debugger plugin shows the correct values (all of them). SVN 2803. :)

dkirienko 2006-09-06 14:45

My bugreport about this(?)bug is here:

http://forums.codeblocks.org/index.php?topic=3996

mandrav 2006-09-28 12:17

This bug is now fixed in HEAD.

Thank you for reporting it.