[DebuggerDisplay("Student:Id={StuId},Name={StuName}")] public class Student { public int StuId { get; set; } public string StuName { get; set; } }
Generally speak,if I comment out the DebuggerDisplayAttribute in debug mode,it displays as below.