Blackwolf23
Blackwolf23

Reputation: 93

Debugger how to only see values not memory addresses of variables

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

Upvotes: 2

Views: 1764

Answers (1)

Jack Zhai
Jack Zhai

Reputation: 6436

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

Upvotes: 1

Related Questions