Skip to content

Debugging: Hovering over struct members only shows declaration info but not debug value #594

@voertler

Description

@voertler

Using the legacy editing experience when hovering over a struct member during debugging, the value of this member variable was shown. With the new debugging experience this doesn't work anymore, only the declaration info is shown.

Old / Expected behavior:

Image

Here the value of my_s.val is shown in the hover when hovering over val.

In the new experience only the declaration is shown, the value from the debugger is missing:

Image

Hovering only over my_s shows the complete struct both in the old and new experience:

Image

OS: Windows.

Example Source Code:

#include <iostream>
struct s{
	int a,b,c,d,e,f,g,h {};
    double val=42;
};


int main(int argc, char **argv) {
    s my_s;
    my_s.val=12;
    std::cout << my_s.val << my_s.a << std::endl;
    return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions