Skip to content

Graphical watch not updating #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wiesener opened this issue Jan 13, 2025 · 3 comments
Open

Graphical watch not updating #17

wiesener opened this issue Jan 13, 2025 · 3 comments

Comments

@wiesener
Copy link

wiesener commented Jan 13, 2025

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
Copy link
Author

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.

@awulkiew
Copy link
Owner

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
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants