Reproduction steps:
1. Open the attached project "ReproProj"
2. Open Build Profiles (File > Build Profiles)
3. Build and run the “/Assets/SampleScene.unity”
4. In Player, click the Button with text “DO ERROR“
5. Observe that the Console appears and an Error is printed
6. Click the Checkbox with text “UNITY DEBUG CONSOLE“
7. Observe that the text at the top left changes to “console disabled“
8. Repeat steps 6 and 4
Expected result: Console exists with an Error logged in it
Actual result: Console is not present
Reproducible with: 2022.3.62f1, 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Reproducible on:
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested