graphical-debugging-vscode icon indicating copy to clipboard operation
graphical-debugging-vscode copied to clipboard

Graphical watch not updating

Open wiesener opened this issue 11 months ago • 3 comments

Hi,

I have a C style array globally defined: uint16_t vbat[64] = {50};

And after starting the debugging the code hits the break point and the graphical watch view is shown. But the signal is always zero although I press proceed to hit the breakpoint again. Any hint what I am missing.

Kind regards,

wiesener avatar Jan 13 '25 13:01 wiesener

Okay, I just checked that the graphical debug is only running if the c-style array is double. If it is an int it does not show up. Any hint? I am debugging with a STM32 processor.

wiesener avatar Jan 14 '25 09:01 wiesener

C-arrays are matched with this regexp: https://github.com/awulkiew/graphical-debugging-vscode/blob/master/resources/stl.json#L6 Maybe it's incorrect or the type reported by your debugger is something wierd? Does short and unsigned short work?

awulkiew avatar Jan 16 '25 21:01 awulkiew

Btw, what debugger do you use? cortex-debug? I just checked with cppvsdbg and it works ok. uint16_t is unsigned short for me, what is it for you?

awulkiew avatar Jan 17 '25 00:01 awulkiew