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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -