🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Force Visual Studio to resolve data tips for members of complex types

Started by
-1 comments, last by irreversible 8 years, 5 months ago

Is there something in VS (2013 in my case) akin to natvis that would allow me to help it resolve non-trivial cases of member expansion to enable hover data tips during debugging? While hopeful, frankly I remain skeptical, since even STL's internal classes don't seem to have this functionality. I also have VA X, but I'm not aware of such functionality in that either.

In case it's not clear what I mean, here's a simple snippet to demonstrate:


    struct valstr
        {
        int32 val;
        };
    struct struct32
        {
        valstr val;

        int32 interimval;
        };

    struct32 s32;
    s32.val.val = 32;
    s32.interimval = 33;

    std::shared_ptr<struct32> p32(&s32);

    int32 i32 = p32->val.val;

Currently breaking on the last line and hovering over either of p32's members prevents VS from generating a data tip. To observe p32->interimval or p32->val.val, I need to either use Quick Watch, a Watch window or hover over p32 and manually expand the shared_ptr (which does have a natvis ruleset written for it).

This topic is closed to new replies.

Advertisement