I can't find solution in Google. I looked at every setting in VS. I couldn't find it. Sorry for possible duplication. But how do I suppress all those addresses in the debugger output? I just want to see the value_=3
and "sand.texture"
.
Asked
Active
Viewed 56 times
0

Raymond Chen
- 44,448
- 11
- 96
- 135

Windings-Lab
- 81
- 7
-
1Why? Presumably you are using the debugger to because something is going wrong and you need to check what the program is doing. Seeing/checking where objects have been allocated is part of debugging. – Richard Critten Dec 30 '22 at 21:33
-
@RichardCritten I don't need that information right now. I just wanna check for example how do boost flyweights working and I am ending up at screenshot number two. I just wanna see `value_=3` and `"sand.texture"` – Windings-Lab Dec 30 '22 at 21:36
-
3Look into [format specifiers](https://learn.microsoft.com/en-us/visualstudio/debugger/format-specifiers-in-cpp?view=vs-2022) and [customizing data visualizers](https://learn.microsoft.com/en-us/visualstudio/debugger/create-custom-visualizers-of-data?view=vs-2022). – Captain Obvlious Dec 30 '22 at 21:41
-
A .natvis (for c++) xml file lets you define what and how your objects are displayed in the debugger. – doug Dec 30 '22 at 21:44
1 Answers
0
Oh. Thanks to @Captain Obvlious I found right answer using format specifiers. Didn't know that Visual Studio have that thing. But here is an answer
- Add variable to Watch
- Changed that that variable to this [variableName],na

Windings-Lab
- 81
- 7