User forums > Using Code::Blocks

Debugging Fun

<< < (2/3) > >>

mandrav:

--- Quote from: Andrew ---Any pointers?
--- End quote ---

You 've been given already :)


--- Quote from: TDragon ---I would highly recommend upgrading to a Nightly Build, most of which are both more stable and more feature-rich than RC2.
--- End quote ---

fili:
Well, I'm using the latest build available at the moment (24 may) + gdb 6.3 and C::B still has problems with the debugger. I have a global array int v[10], add it in watches and see only one element (0), even if I'm setting the array's start at 0 and count 10. Then, I set v[5] = 1 and see it in the list as element #2. Then v[2] = 4 and see it as element #3.  :shock: In the end I have 0,1,4 instead of 0,0,4,0,0,1,0,0,0,0. Pretty wierd, huh?  :D If I'm using the debugger directly, print v gives the right result.

mandrav:

--- Quote from: fili on May 25, 2006, 11:27:58 am ---Well, I'm using the latest build available at the moment (24 may) + gdb 6.3 and C::B still has problems with the debugger.

--- End quote ---

Hijacking a topic is not polite at all. The original poster's questions have nothing to do with what you said (which btw is already reported in the bug tracker).

fili:
I know that hijacking is not polite and I didn't consider my post as hijacking. Maybe I haven't used the right words.
I was replying to two things:


--- Quote from: Andrew on May 25, 2006, 12:00:11 am ---However this is an array of 10 values or more and there's got to be a better way than to add a watch for each index.

--- End quote ---
- the fact that arrays aren't functioning right in the debugger (sorry, didn't see the bug report). Therefore there isn't a way of watching elements of a pointer to an array.

- @TDragon: the fact that this problem exists even in the latest nightly build + gdb 6.3

mandrav:

--- Quote from: fili on May 25, 2006, 02:36:00 pm ---
--- Quote from: Andrew on May 25, 2006, 12:00:11 am ---However this is an array of 10 values or more and there's got to be a better way than to add a watch for each index.

--- End quote ---
- the fact that arrays aren't functioning right in the debugger (sorry, didn't see the bug report). Therefore there isn't a way of watching elements of a pointer to an array.

--- End quote ---

Read the bug report. It's a completely different thing. You 're talking about watching a C array as returned by the debugger. OTOH, current C::B allows you to set the watch's format to "array" which behaves entirely different.
Anyway, enough hijacking from my part too. It's an open bug...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version