vscode icon indicating copy to clipboard operation
vscode copied to clipboard

When debugging C language projects in VS Code, the Watch window may fail to display global variables.

Open HalfSweet opened this issue 1 month ago • 1 comments

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.

Image

HalfSweet avatar Oct 31 '25 03:10 HalfSweet

This is probably an issue in the MS-DAP server which is in the main repo.

Yatekii avatar Oct 31 '25 11:10 Yatekii