Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: DoaEst7 on June 05, 2018, 08:04:52 pm

Title: Memory dump Window Format
Post by: DoaEst7 on June 05, 2018, 08:04:52 pm
Hello,
I'm using Code::Blocks 13.12.  Running on a Raspberry Pi with Raspbian 4.9.45 OS.   In debugging my C program I wish to view a global array of floats.   I can find the array in the memory dump window but it displays hex data.   Is there any way to view the data in float format?
Thanks much
Title: Re: Memory dump Window Format
Post by: BlueHazzard on June 05, 2018, 09:25:11 pm
No...
but why do you don't use the watches?
Title: Re: Memory dump Window Format
Post by: DoaEst7 on June 05, 2018, 11:34:49 pm
Watches window shows the global arrays but not their contents.  Just shows a pointer to their location in memory.  Is there  a way to display the contents of  global arrays in the Watches window, (in float format)?
Title: Re: Memory dump Window Format
Post by: oBFusCATed on June 05, 2018, 11:53:53 pm
Have you tried to right click on the watch and inspect the properties?
There are options to enable display of arrays.
Title: Re: Memory dump Window Format
Post by: BlueHazzard on June 06, 2018, 01:48:18 am
Quote
Watches window shows the global arrays but not their contents.
You can add your own watches by going with the mouse over the variable you want to see->right click->Add watch
This is only available in the running debugger...

[Edit:] You can also add watches, by typing in a free row in the watches window. There you can enter nearly any valid c syntax. Like &variable will give you the address and *variable will give you the value of a pointer... You can also enter variable1+variable2 and so on...