I have the following statement:
var instance = GetLastActiveInstance() ?? AppInstance.FindOrRegisterInstanceForKey(App.Id.ToString());
When I place a breakpoint at the above statement and step through, how can I know whether the ??
operator chose the left-hand side or the right-hand side? Is there a trick for this? I am using Visual Studio 2019, but I also would be happy to hear a solution for VS Code.
If there had been a variable used in either of the two sides, I could hover over the variable and see its value. But with method calls, the only solution seems to first assign at least one method call's result to a temporary variable. But of course, that results in code modification.
You can put a breakpoint inside both the methods? OR when you are on the line you hit F11