The Visual Studio debugger does not support direct reading of virtual memory. Support for e> GetFirstName () will require introspection into the GetFirstName () function, which can be very complex if GetFirstName () is non-trivial or virtual (worst of all, GetFirstName () may have side effects or crash). Changing autoexp.dat will not let you get around this problem.
If you really want to get this functionality, you can add a new debug member function, such as std :: string * _firstName, and point it to GetFirstName () when building Person, and then expand the autoexp.dat spread and display this variable for you.
Matt fisher
source share