I am using an MBP m1 machine. I have gotten GDB/OPEN OCD working.
however one last question I have which I am have not been able to find an answer to is whether or not it is possible to view LIVE WATCH Variables in REAL TIME. (or something similar to how CUBE IDE works)
ON cube IDE you can hear sound on an stm-32 board and see the real time variable output. I tried enabling Live_watch in my Json file and putting an expression in but it never works. Whereas right now it always seems as if the board is “paused” and you can step through without issue but the variables are not changing until you step through.
If anyone on here has been able to get Live Expressions working with their STM LINK 3 I would love to know about it.
I’m really sorry for the delay in response.
We don’t think it’s possible with the openocd/cortex debug stack that we use unfortunately.
But this is something that would be super convenient to have working in VS Code, so we would love to dig deeper when we get a chance. Hopefully we can share some solution with the community in the near future!
it works with stlink!
so long as these lines are included in your launch.json
Yes it works, but only with “Debug with ST-Link” configuration added.
Also, it only works with global or static variables.
"name": "Debug with ST-Link",