Sign in to follow this  

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

This topic is 684 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

This topic is 684 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this