Watch Window in Visual Studio -


is there way specify members of object see in watch window without expanding tree properties. example:

p = new point(10 ,10) display on value column in watch : {x = 10 y = 10}.

for own classes displays : {mynamespace.myclass} or {mynamespace.mystruct}.

could change in order display : { mystringproperty = "" myintproperty = 0 ... } ?

see using debuggerdisplay attribute

if have marked class attribute:

[debuggerdisplay("x = {x} y = {y}")] public class myclass {    public int x { get; private set; }    public int y { get; private set; } } 

output appearing in value column of watch window following:

x = 5 y = 18 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -