Visual Studio 2022 is ignoring the "DebuggerDisplay" attribute for one of my classes, and I would really appreciate help figuring out why. I have several classes using [DebuggerDisplay("{DebuggerString}")]
including others inheriting from VM
, and all of them correctly display the current value of their respective DebuggerString
property during debugging except for this one, which always displays "ImageRefreshTrigger = 0" as the debugger value.
Relevant code snippet looks as follows:
namespace SynthEBD;
[DebuggerDisplay("{DebuggerString}")]
public class VM_SubgroupPlaceHolder : VM, ICloneable
{
...
public int ImageRefreshTrigger { get; set; } = 0;
public string ID { get; set; }
public string Name { get; set; }
...
public string DebuggerString
{
get
{
return ID + ": " + Name;
}
}
...
}
Full code is available at the GitHub page. Thanks in advance for advice!