Some classes could have a `DebuggerDisplayAttribute`
See original GitHub issueOut of my head I can think of a couple of cases:
NpgsqlParameter
: displaying its name and maybe its value;NpgsqlCommand
: displaying the command text.
Probably there are plenty more opportunities for this. Is there a reason for not having them yet? It would be very helpful. Maybe I could send a PR.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
How to make [DebuggerDisplay] respect inherited classes ...
You can get the effect you need by using the DebuggerTypeProxy attribute. You need to create a class to make a debug "visualisation"...
Read more >DebuggerDisplayAttribute Class (System.Diagnostics)
Initializes a new instance of the DebuggerDisplayAttribute class. Properties. Name. Gets or sets the name to display in the debugger variable windows.
Read more >Use DebuggerDisplayAttribute to make your life easier
The DebuggerDisplayAttribute adds the full class name where the Person property is used on the orderDebugger variable. Let's take a look at ...
Read more >Consider adding DebuggerDisplayAttribute to classes #466
Description We should consider adding the DebuggerDisplayAttirbute to classes which can be inspected for debugging.
Read more >What I've learned today - Debugging with DebuggerDisplay ...
What does this DebuggerDisplay attribute do exactly? Let's start from the beginning. By default when inspecting an object e.g. House: public ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@YohDeadfall done
We’d gladly accept a PR, but let’s wait to see what @YohDeadfall about NpgsqlCommand (you can do NpgsqlParameter though).
For the property pattern, I think it’s fine to use it when more than one value is being interpolated, and not to use it when it’s just one thing (like the proposal for NpgsqlCommand.CommandText).