Array contents in debugger
Posted: Sat Aug 26, 2023 8:18 pm
This is very strange - my program gives the same error 'reliably' - when stepping through it.
I've been able to replicate in a code snippet.
The debugger gives some 'strange' values for an array:
When passing an array that is 'smaller' than the parameter of a macro - so in the image I'm passing an 8 byte array to a macro where the parameter is defined as x[10] (note that I pass in variable length arrays) - the code works correctly - just some 'visual' noise.
Note it would also be good if the top line displayed B[10] instead of just []data[10] - type shows on expansion though.
Is a a (slightly) more complicated that it needs to be example.
Martin
I've been able to replicate in a code snippet.
The debugger gives some 'strange' values for an array:
When passing an array that is 'smaller' than the parameter of a macro - so in the image I'm passing an 8 byte array to a macro where the parameter is defined as x[10] (note that I pass in variable length arrays) - the code works correctly - just some 'visual' noise.
Note it would also be good if the top line displayed B[10] instead of just []data[10] - type shows on expansion though.
Is a a (slightly) more complicated that it needs to be example.
Martin