2025-03-13 2:49 AM
Hello,
I have a question about vscode with STM32 extension. I have setup a project with vscode and stm32 extension, and after compiler, it can do debug, and I can see the Global Variables on the VARIABLES window. as below
but when I use vscode to do another design not with stm32 extension. I do the debug, but I cannot see the Global Variables on the VARIABLES window. as below, only Locals and Registers.
Why no Global Variables? what is the difference among the 2 vscode?
Thanks.
Solved! Go to Solution.
2026-01-26 2:35 PM
VSCode likely has the Cortex-Debug extension installed. The Cortex-Debug extension can sometimes get installed through other MCU vendor extensions as well. That extension gives you the Globals and the Static variables (main.c) during debug. Some of the JSON files may need to be updated to debug using the extension.
2026-01-26 2:35 PM
VSCode likely has the Cortex-Debug extension installed. The Cortex-Debug extension can sometimes get installed through other MCU vendor extensions as well. That extension gives you the Globals and the Static variables (main.c) during debug. Some of the JSON files may need to be updated to debug using the extension.