Skip to content

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

Description

@HalfSweet

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions