Debugger how to only see values not memory addresses of variables

为君一笑 提交于 2021-02-19 06:01:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!