Reputation: 77
Is it possible when debugging with visual studio to show the fields in an order not alphabetical?
Most times my objects have the usual "name" field but starting with n it ends much much lower in the list(yeah I know I could just call it aaaName) but i don't want to have to do it...
Can't vs just show with the order I put the fields on the code? If not is there a way to move the dispay fields around?
Upvotes: 0
Views: 55
Reputation: 77285
I have not seen any ordering in the debugger, but you can do something even better. With the DebuggerDisplay-Attribute you can change what the debugger by default displays. You can display the name for example. That's even easier than opening your object and looking for the name.
Upvotes: 2