How to reproduce:
1. Open the user-attached project “InspectorDebugMode”
2. Open the “SampleScene” Scene
3. Select a “Cube” GameObject in the Hierarchy
4. Change the Inspector mode from Normal to Debug
5. Add the “NewBehaviourScript.cs” Component to the “Cube” GameObject
6. Observe the Console
Expected result: There are no error messages
Expected result: The error messages are spammed until you switch the Inspector back to the Normal mode
Reproducible with: 2022.2.0a9, 2022.2.10f1, 2023.1.0b6, 2023.2.0a5
Not reproducible with: 2020.3.45f1, 2021.3.20f1, 2022.2.0a8
Reproducible on: Windows 11 Pro
Workaround: Add a Component In Normal Mode and switch to Debug mode
Note: It is reproducible with all Components