Jump to content
  • Advertisement
Sign in to follow this  

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

This topic is 988 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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).

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!