问题
As of late I have been working extensively with struct and classes in visual studio.Most of them have a lot of values witch makes them hard to track in the watch windows while debugging because the watch windows and the floating watch windows ( the one you can pin , dont know precise term ) always show the memory address which obscures the view of the values. Is there a way to make it so that the watch windows only show the values and not memory addresses
回答1:
Write the custom natvis would be a workaround.
But if the debugger knows the type of the memory location, I think it can display the value.
Reference:
Is it possible to watch the value of a memory location using the Visual Studio Debugger's Watch window?
In addition, using format specifiers in watch window would be helpful for you to visit the value format:
https://msdn.microsoft.com/en-us/library/75w45ekt.aspx
来源:https://stackoverflow.com/questions/41221735/debugger-how-to-only-see-values-not-memory-addresses-of-variables