[HideInspector] attribute overload to still show in Debug mode

Request, allow showInDebugMode option like so:

[HideInInspector(showInDebugMode: true)] public GameObject myObject;

I often want to HideInInspector. But in some cases I’d still like to be able to see what’s assigned there if I flip on the Inspector’s debug mode. Currently, debug mode will hide [HideInInspector] fields always. An overload, defaulted to false, to allow still seeing it would solve this without needing a custom editor for such a small thing.

Of course as soon as I post I find a decent workaround:

using UnityEngine;
using UnityEditor;
[CustomPropertyDrawer(typeof(HideInNormalInspector))]
public class HideInNormalInspectorDrawer : PropertyDrawer
{
    public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    {
        return -2; // To compensate the gap between inspector's properties
    }
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
    {

    }
}

public class MyClass : MonoBehaviour {
    [HideInNormalInspector]
    public float myPublicVar;     
}

[Source]

Feedback still stands… an overload would be appreciated.