User forums > General (but related to Code::Blocks)
how to watch the value of an array in Nightly Debug Branch?
(1/1)
facat:
i was using the nightly debug branch of CB. i added my interesting array to the watch window, ticked the "Watch as array" and set the count. However it said "Cannot access memory at address 0x0". how can i see the value of my array?
Jenna:
Are you sure you try to watch a valid array ?
facat:
--- Quote from: jens on April 09, 2011, 08:55:45 pm ---Are you sure you try to watch a valid array ?
--- End quote ---
yes, i tried to watch a dynamically allocated array.
oBFusCATed:
What is the type of the array?
Are you sure that the pointer is not pointing to NULL?
GDB is telling you just this:)
facat:
--- Quote from: oBFusCATed on April 10, 2011, 03:33:23 am ---What is the type of the array?
Are you sure that the pointer is not pointing to NULL?
GDB is telling you just this:)
--- End quote ---
ok. it was solved. i made a mistake. thk you.
Navigation
[0] Message Index
Go to full version