How to view array contents during debugging in code blocks?

This is probably a stupid question, and I'm posting Post-Googling, The question is

How do i view the contents of an array while debugging, Provided the Breakpoint is in function not Main?

I use the code :: blocks version 13.12 and I set a breakpoint in my simple C ++ code example and I want to watch how the contents of the array with the code change, but all I see is the address of the array under the viewport , but it displays other values of integer variables,

enter image description here

a - array

I forgot to mention that I am tracking the array in a function, not basically, and I know that main passes the array address of the called function (by reference i)

I am relatively new to code blocks. Am I missing some kind of setup or something like that?

+4
4

12.11. , a, " a" , a.

+2

, "", " " .

+5

→ →

" Windows" , "", , !

+1

, , - .

→ ... → GDB/CDB → " ", , , .

This is not the same as in the Watches toolbar, but strangely it displays the fields of an array.

+1
source

Source: https://habr.com/ru/post/1530712/


All Articles