VS2022 – Can’t view values of variables when exception thrown – Local variables and arguments are not available in ‘[Exception]’ call stack frames December 28, 2023 by Tarik You can go to Debug>Windows>Exception Setting and choose “System.InvalidOperationException” to solve the issue.