Reputation: 393
I am using STM32F4 and trying to debug C code using VS Code with the Cortex Debug extension. When I try to modify the value of a static variable, I am seeing the error below.
Could not set variable: Variable object not found (from var-assign my_var 0x1388)
my_var
is a uint32_t
Am I missing anything here?
Upvotes: 0
Views: 511
Reputation: 51422
The problem was partially solved by updating VS Code to version 1.83. I'd like to elaborate, but the cause of the issue is not known by me or the asker of the question. Apparently there are still some issues, which are being tracked by https://github.com/Marus/cortex-debug/issues/947, but which should be fixed by commit 5a2effed
.
At the time of this writing, custom builds with the fix can be found here, but they will take time to get into the official releases due to other engineering work (source).
Upvotes: 1