Filter
Exclude
Time range
-
Near
Most .NET devs never touch this. But it makes debugging 10x easier. Standard debugging view: {Namespace.ObjectName} Zero context. Lots of confusion. But with one line of code? Now your watch window shows: Order ORD-2025-001: Alice Smith - 249.99 Order ORD-2025-002: Bob Evans - 89.50 Order ORD-2025-003: Maria Lee - 1200.00 The trick? Use DebuggerDisplay. You add this attribute on top of the class to control how you want to display class info while debugging. Next time you're staring at {Namespace.ObjectName}, remember: it doesn't have to be that way.
5
5
46
2,540
Most .NET devs never touch this. But it makes debugging 10x easier. Standard debugging view: {Namespace.ObjectName} Zero context and lots of confusion. But with one line of code? Now your watch window shows: Order ORD-2025-001: Alice Smith - 249.99 Order ORD-2025-002: Bob Evans - 89.50 Order ORD-2025-003: Maria Lee - 1200.00 The trick? Use DebuggerDisplay. You add this attribute on top of the class to control how you want to display class info while debugging. Next time you're staring at {Namespace.ObjectName}, remember: it doesn't have to be that way.
9
28
204
8,793
Most .NET devs never touch this. But it makes debugging 10x easier. Standard debugging view: {Namespace.ObjectName} Zero context. Lots of confusion. But with one line of code? Now your watch window shows: Order ORD-2025-001: Alice Smith - 249.99 Order ORD-2025-002: Bob Evans - 89.50 Order ORD-2025-003: Maria Lee - 1200.00 The trick? Use DebuggerDisplay. You add this attribute to the top of the class to control how you want to display class information while debugging. Next time you're staring at {Namespace.ObjectName}, remember: it doesn't have to be that way.
3
17
132
5,486
Amend default debugging view for a class ⬇ I learnt something new recently ... we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute. #dotnet
20
50
396
19,878
Debugging Complex Classes with the [DebuggerDisplay] Attribute "I needed to tame that debugging sprawl," says Benjamin Day (@benday) in describing how he overcame complexity trepidation to use this cool Visual Studio/.NET feature. #vslive #dotnet vslive.com/Blogs/News-and-Ti…
1
2
376
Amend default debugging view for a class ⬇ I learnt something new recently, we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute. #dotnet
14
49
441
25,386
Amend default debugging view for a class ⬇ Did you know we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute? Thanks to Adem Sahin on LinkedIn for the image -> linkedin.com/in/adem-sahin/ #dotnet
14
34
268
15,014
Replying to @MommerC
We haven't found a performant way to make it use DebuggerDisplay, so it'll just be ToString for now. Proper support for complex types will be coming soon.
1
98
5 Mar 2024
#NCrunch RDI is completly mind-blowing... I cannot be happier to renew my licence years after years to have such great features! Now I have to enhance my objects with DebuggerDisplay or ToString overloads, since I believe it's what it's used to display infos in RDI
2
3
170
12 Jan 2024
C#はデバッガーを重要視していて、それはDebuggerStepThrough属性(デバッガで止まらないようにマーク、自動生成コードなどステップ実行のノイズになるものを除外)や、DebuggerDisplay属性(デバッガでの変数表示用の特別な表示を作れる)など、多様な手段でデバッガービリティを向上させられます。
23
109
10,638
Amend default debugging view for a class ⬇ I learnt something new today, we can change the standard debugging view for a C# class by using the DebuggerDisplay attribute. Thanks to Adem Sahin on LinkedIn for the image -> linkedin.com/in/adem-sahin/ #dotnet
7
29
219
14,383
18 Dec 2023
Trick is to define custom type with DebuggerDisplay attribute and using Name for the key. Sep uses this too in the SepReader.Row. 👇 github.com/nietras/Sep/blob/… #dotnet
Debugging dictionaries has a new look in .NET 9. What do you think?
1
2
14
995
📂.NET System.Diagnostics DebuggerDisplay The DebuggerHidden attribute does not stop debugging in constructor, method, and property declarations When we stop on this class, we can view the data "formatted" as a string without having to open the whole object
1
7
603
18 Apr 2023
Hey #csharp devs. Did you know @VisualStudio leverages the [DebuggerDisplay] attribute on your class to show values in the debugger that matter most to you? It saves you from overriding ToString() to do the same thing. Did you know this? @dotnet
14
38
183
14,693
Cómo usar la clase DebuggerDisplay en C# en Visual Studio para mejorar la productividad en las sesiones de #debug de tus aplicaciones! #developer #dotnet #vs2022
1
1
3
225
Nuovo video nel canale: "Miglioriamo il debug con l'attributo DebuggerDisplay"! Un attributo super utile, ma davvero poco conosciuto. #debug #visualstudio #dotnet youtu.be/FDPEKqQmG4g

2
4
9
399
I #learnedFromFsharpCompiler that debugger can be very useful, despite trendy hates against it. The following .NET attributes are handy for changing debugging appearance: [<DebuggerTypeProxy(typeof / typedefof<{proxyType}>)] [<DebuggerDisplay("X={expr}")>]
3
3
9
651
📂.NET System.Diagnostics DebuggerDisplay The DebuggerHidden attribute does not stop debugging in constructor, method, and property declarations When we stop on this class, we can view the data "formatted" as a string without having to open the whole object
3
Wow! @maartenballiauw was right about this @JetBrainsRider feature. It’s like DebuggerDisplay on the fly. ✈️
Now pin a property of the class in your list and be even more amazed (it's like building DebuggerDisplay attribute on the fly)
1
1
7