0

In .NET managed code there is a DebuggerDisplayAttribute, so an object's most important values can easily be observed during a debugging session in Visual Studio 2022 without being required to drill deep into the object's properties everytime.

Is there something similar for C++ in Visual Studio 2022?

I feel it's hard to observe std::string or std::list<std::string>, for example, without such comfort.

AxD
  • 2,714
  • 3
  • 31
  • 53
  • Just type the expression you want to watch into the Watch window. Aside from that, [custom visualizers *are* supported](https://visualstudiomagazine.com/articles/2016/12/08/cpp-visualizers.aspx). – Cody Gray - on strike Jan 17 '23 at 15:08
  • Thanks for enlightening me! I had found hundred search results on Google/Bing on .NET, but none on C++. – AxD Jan 18 '23 at 10:37

0 Answers0