I suggest you ...

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:

https://developercommunity.visualstudio.com/content/problem/39177/debugger-function-call-bug.html

42 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Csaba Stupak shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base