question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some classes could have a `DebuggerDisplayAttribute`

See original GitHub issue

Out 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:open
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Logerfocommented, Oct 28, 2019
1reaction
rojicommented, Oct 23, 2019

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found