diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs index 7aa9b0dfd9..04f78da959 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; namespace Umbraco.Core.Models.PublishedContent @@ -9,6 +10,7 @@ namespace Umbraco.Core.Models.PublishedContent /// /// Instances of the class are immutable, ie /// if the content type changes, then a new class needs to be created. + [DebuggerDisplay("{Alias}")] public class PublishedContentType : IPublishedContentType2 { private readonly IPublishedPropertyType[] _propertyTypes; diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs index b83dc7a013..2b55a32095 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; namespace Umbraco.Core.Models.PublishedContent { @@ -18,6 +19,7 @@ namespace Umbraco.Core.Models.PublishedContent /// Provides an abstract base class for IPublishedContent implementations that /// wrap and extend another IPublishedContent. /// + [DebuggerDisplay("{Id}: {Name} ({ContentType?.Alias})")] public abstract class PublishedContentWrapped : IPublishedContent { private readonly IPublishedContent _content; diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs index 58241ade24..397cde7a6d 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs @@ -1,10 +1,12 @@ using System; +using System.Diagnostics; namespace Umbraco.Core.Models.PublishedContent { /// /// Contains culture specific values for . /// + [DebuggerDisplay("{Culture}")] public class PublishedCultureInfo { /// diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs index 566319ab74..6067765a46 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; namespace Umbraco.Core.Models.PublishedContent { @@ -10,6 +11,7 @@ namespace Umbraco.Core.Models.PublishedContent /// if the data type changes, then a new class needs to be created. /// These instances should be created by an . /// + [DebuggerDisplay("{EditorAlias}")] public class PublishedDataType { private readonly Lazy _lazyConfiguration; diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs index e11d2391ec..6cc4282927 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using Umbraco.Core.PropertyEditors; namespace Umbraco.Core.Models.PublishedContent @@ -7,6 +8,7 @@ namespace Umbraco.Core.Models.PublishedContent /// Provides a base class for IPublishedProperty implementations which converts and caches /// the value source to the actual value to use when rendering content. /// + [DebuggerDisplay("{Alias} ({PropertyType?.EditorAlias})")] internal abstract class PublishedPropertyBase : IPublishedProperty { /// diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs index 0c2e62770e..871cf726f6 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.Xml.Linq; using System.Xml.XPath; using Umbraco.Core.PropertyEditors; @@ -10,6 +11,7 @@ namespace Umbraco.Core.Models.PublishedContent /// /// Instances of the class are immutable, ie /// if the property type changes, then a new class needs to be created. + [DebuggerDisplay("{Alias} ({EditorAlias})")] public class PublishedPropertyType : IPublishedPropertyType { private readonly IPublishedModelFactory _publishedModelFactory; diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs index 6d30334415..dbe99a7dfe 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs @@ -1,5 +1,8 @@ -namespace Umbraco.Core.Models.PublishedContent +using System.Diagnostics; + +namespace Umbraco.Core.Models.PublishedContent { + [DebuggerDisplay("{Content?.Name} ({Score})")] public class PublishedSearchResult { public PublishedSearchResult(IPublishedContent content, float score)