vscode
vscode copied to clipboard
When debugging C language projects in VS Code, the Watch window may fail to display global variables.
I cannot add static variables to the Watch window; it reports an invalid expression error. However, this variable is visible in the Static window. Strangely, local variables can be added to the Watch window.
I tested this on [Windows 11, macOS] using [Jlink, DAPLink] with [STM32F407, STM32H750, STM32F103] on Cartesian products, and encountered the same issue consistently. It reproduces reliably.
This is probably an issue in the MS-DAP server which is in the main repo.