{"id":11841,"date":"2019-07-09T10:33:27","date_gmt":"2019-07-09T18:33:27","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/vsnews\/?p=11841"},"modified":"2019-07-09T10:33:27","modified_gmt":"2019-07-09T18:33:27","slug":"aa5jsl4","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vsnews\/akams-aa5jsl4\/","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\u2019s 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","protected":false},"excerpt":{"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\u2019s identity can become tiresome very fast. Ideally, it would be great to quickly locate them by a particular property value.\u00a0 Luckily for [&hellip;]<\/p>\n","protected":false},"author":836,"featured_media":8227,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-11841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allskus"],"acf":[],"blog_post_summary":"<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\u2019s identity can become tiresome very fast. Ideally, it would be great to quickly locate them by a particular property value.\u00a0 Luckily for [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/11841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/users\/836"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/comments?post=11841"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/11841\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media\/8227"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media?parent=11841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/categories?post=11841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/tags?post=11841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}