I can't get the DebuggerDisplay attribute to work in C# express. It works just fine in VB. I searched google and it seems like I'm the only person who has this problem. I can't find any relevant settings or anything.
[CS]
class Program
{
static void Main(string[] args) {
X var = new X(); // Displays "{ConsoleApplication2.X}" in debugger
}
}
[DebuggerDisplay("Test")]
class X {}
[/CS]
Anyone have any ideas?
Visual Basic:
Module Module1
Sub Main()
Dim var As New X 'Displays "Test" in the debugger.
End Sub
End Module
<DebuggerDisplay("Test")> _
Class X
End Class
[CS]
class Program
{
static void Main(string[] args) {
X var = new X(); // Displays "{ConsoleApplication2.X}" in debugger
}
}
[DebuggerDisplay("Test")]
class X {}
[/CS]
Anyone have any ideas?