On trying to put a watch the value of any object in Debug mode in Visual Studio 2022, I get "internal error in the C# compiler" instead of the actual value.
Many posts in StackOverflow suggest checking this option in Visual Studio IDE. Tools-> Options > debugging > enable Use Managed Compatibility Mode
This option is not available in Visual Studio 2022.