Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to resolve structure global structure members on mouse-hover #13273

Open
bryghtlabs-richard opened this issue Feb 12, 2025 · 3 comments
Labels
debugger help wanted Can be fixed in the public (open source) repo. more info needed The issue report is not actionable in its current state

Comments

@bryghtlabs-richard
Copy link

Feature Request

When I hover the mouse over a structure's member, it shows me the type(which is nice), but often I actually want to see the value of the structure's member.

Example structure definition in header:

typedef struct {
  uint8_t AIFrom;
  uint8_t AITo;
}moveVar;

Example usage site:

extern moveVar moveStatus;

void func(){
  clearChessLEDs();
  convertSendLEDData();
  sequenceAILights(moveStatus.AIFrom, moveStatus.AITo);
}

Hovering on moveStatus.AIFrom shows AIFrom's type:

Image

Note: I'm quite new at using VSCode , it's possible I've made a mistake setting it up. I am using ms-vscode.cpptools version 1.23.6 with an ESP32-S3 hardware target over JTAG. They thought this was an issue in this module.

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Feb 12, 2025

@bryghtlabs-richard What do you mean by "value of the structure's member"? It sounds like you're referring to the value in the debugger. Normally, when debugging it's supposed to show the value. I've seen some random bug or something where it sometimes doesn't show the value, but eventually if I keep trying to hover and/or use the watch window I can usually see its value. i.e. you may be hitting a bug where the debugger doesn't have the value so it's falling back to showing the language service info.

@sean-mcmanus sean-mcmanus added debugger more info needed The issue report is not actionable in its current state help wanted Can be fixed in the public (open source) repo. labels Feb 12, 2025
@bryghtlabs-richard
Copy link
Author

@sean-mcmanus , I mean I'd like to see the value of moveStatus.AIFrom, a number in the range of a uint8_t.

When I hover the mouse over plain stack variables, they do show the variable's value. But moveStatus.AIFrom doesn't.

@sean-mcmanus
Copy link
Contributor

@bryghtlabs-richard It seems like possibly a debugger bug with "unnamed" C struct members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger help wanted Can be fixed in the public (open source) repo. more info needed The issue report is not actionable in its current state
Projects
None yet
Development

No branches or pull requests

2 participants