{"id":225613,"date":"2019-06-10T09:00:03","date_gmt":"2019-06-10T16:00:03","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=225613"},"modified":"2019-06-10T09:06:56","modified_gmt":"2019-06-10T16:06:56","slug":"customize-object-displays-in-the-visual-studio-debugger-your-way","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/customize-object-displays-in-the-visual-studio-debugger-your-way\/","title":{"rendered":"Customize object displays in the Visual Studio debugger YOUR way"},"content":{"rendered":"<p>Have you ever stared at objects in a debugger window and wished that you could view those objects by something other than their type?\u00a0 I certainly have!\u00a0 Expanding items to determine each one&#8217;s identity can become tiresome very fast. Ideally, it would be great to quickly locate them by a particular property value.\u00a0 Luckily for us, Visual Studio has two not-so-well-known attributes known as <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/debugger\/using-the-debuggerdisplay-attribute?view=vs-2019\"><strong>DebuggerDisplay<\/strong><\/a> for managed users, and <strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/debugger\/create-custom-views-of-native-objects?view=vs-2019\">Natvis<\/a><\/strong> for native C++ users. These attributes let you customize how you view objects in debugger windows such as the Watch, Autos, Locals, and datatips!<\/p>\n<p><figure id=\"attachment_225621\" aria-labelledby=\"figcaption_attachment_225621\" class=\"wp-caption aligncenter\" >