User forums > Help
Value in watches not show up for array of char and char* variable
kentut:
Hello guys, I am a new codeblocks user, and I really need it for debugging my program consisting of many functions. However, the watches windows can't show up the value of my array of char variable and char* variable. Anyone knows what's wrong with my codeblocks? I have attached the screenshot here.
Thanks guys :)
kentut:
Here's screenshot of watches and my variable declaration..
ollydbg:
I don't see any thing wrong. The local variable is not initialized, so random values are shown.
What is the expect value shown in the watch window?
kentut:
Actually the previous screenshot is a called function, variable a and b are parameters passed from the main program, but I can't find the values.
Here's the screenshot in the main program. Although I have initialized b[0] and b[1], it doesn't show the value in watches.
scarphin:
Initialize b[0], b[1] to 0x30, 0x31 and try again please.
Navigation
[0] Message Index
[#] Next page
Go to full version