DebuggerDisplay attribute

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 11-Jul-2006 13:56:04   

Hi Frans,

Here is a suggestions: do decorate your (and perhaps also generated classes by modifying default templates) with DebuggerDisplay attribute. Having core information in a tooltip is even better than debugger visualizers when the info is simple.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 11-Jul-2006 14:46:35   

Ah, I didn't consider that one that much as I found the debugger figure out some of the info already in the right form and also the debugger visualizers did a good job.

Also, with these things it's often a struggle what to display. PK info might be a good candidate, however in other classes it's not that simple. You have some ideas about which info you might want to see with which types?

Frans Bouma | Lead developer LLBLGen Pro
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 11-Jul-2006 22:52:40   

Yes, PK is a good candidate for entities indeed - you can quickly figure out which entity you are looking at (well, unless PK is a GUID simple_smile ). You might also show whether the entity is dirty. For EntityCollection I would show the number of entries and perhaps number of dirty entries (and similar with Context). Then there are predicate expressions (showing something similar to visualizer output without parameters or perhaps with parameter values instead of parameter names). Stuff like that. I have to work a bit more with llblgen to see what exactly would come handy.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 12-Jul-2006 21:01:57   

Good points. Anyone else who has some ideas about this?

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 12-Jul-2006 23:52:39   

Otis wrote:

Good points. Anyone else who has some ideas about this?

Are attrbiutes inherited? Seems like this should be left up to the developer.

BOb

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 14-Jul-2006 11:33:00   

They can indeed be applied to a partial class. For the entities at least. For the predicate expressions etc. it's difficult, but I think the debug visualizers are more interesting for this.

Frans Bouma | Lead developer LLBLGen Pro