3rd party class visualization (or function calls from debugger)
Our company is working on a modeling software. The project uses a lot of 3rd party modules where the class content is hidden. Very similar how MFC'c GDI objects (e.g. CBitmap) are implemented. We do not see any member variables, however we can use static methods to work with the objects.
To debug such project is a pretty big pain, because all we see in the debugger is a void pointer address. To get more information about the objects we have to write temporary lines to the code to save the object's content to a LOG file. This approach is cumbersome :-(
It would be nice if we could write helper static functions to our C++ project which would have the class/object being inspected as the input argument and a string as the output argument. We could call this function from the natvis file so the debugger would display this string instead of class handler/void pointer what is not really helpful.
We are trying to do this via VS extension however due to a bug in VS debugger we are not able to call functions:
Do you mean this: https://msdn.microsoft.com/en-us/library/jj620914.aspx