RSS Search

News  Feeds  Tags  Search Shortcuts

FeedsFarm.com > Customize the DebuggerDisplay using autoexp.cs

Customize the DebuggerDisplay using autoexp.cs

13th Nov 2006, 18:46 GMT

Hey! Last week Karen K. Liu (PM /C# MS) had a presentation at TechEd in Barcelona about tricks and tips using visual studio and more. One of this tip was to Customize autoexp.cs found in ${mydocuments}/Visual Studio 2005\Visualizers\ I have a Class named MyClass which can be found in the MyNamespace and is located in MyFile.dll, and what i write in the autoexp.cs file is : using MyNameSpace; [assembly: DebuggerDisplay(@"\{Count = {count}}", Target = typeof(MyClass))] and when debugging i want to display the count parameter of MyClass when i hold the mouse over the object. What else is needed to get this to work? I have restarted VS 2005 after editing. A weird thing is that I also changed the DebuggerDisplay for Font (which is already used in the autoexp file), and i created a instance of Font in my [TestMethod]. But not even the font object displayed accordingly to what i wanted. Somehow it looks like the autoexp.cs file is never read... Anyone have a clue? /Halvor

View full story at channel9.msdn.com

Customize the DebuggerDisplay using autoexp.cs related news:

Latest news from Channel 9: