Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Morning all.

Years ago coding with c++ I remeber customising how the IDE displays variables in the watch window. In other words I could tell VS how your custom Vector class should be displayed for debugging so I did not have to expand the watch object.

For example

class Vector
{
 float x, y, z;
}


Could be displayed as { x : 1.0f, y : 2.0f, z : 3.0f } in the Value column.

I cannot for th life of me remeber how to do this and I am unable to find any hints on this for C# and VS2010.

Any ideas?
Posted
Comments
PaulPrice 6-Jan-11 4:10am    
The visualisers mentioned below look like a step in the right direction, and I will definately look into these.

I notice from my first glance that the Visualisers are based in PopUp windows, I am rather hoping to simply have the Watch list automatically display the relevant contents of my object, is this possible?

 
Share this answer
 
Comments
JF2015 6-Jan-11 4:07am    
Good links!
Nuri Ismail 6-Jan-11 4:11am    
Thank you! :)
Take a look at this:
Visualizers
[^]

Might be what you are looking for ...

Regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900