Blazor WASM debugging – unable to see local values

I recently encountered an issue while trying to debug a Blazor client project. Googling any Blazor debugging issues returns lots of results, all of them related to breakpoints not being hit. However, my problem was that despite hitting breakpoints, no variable values etc. could be examined. So debugging did nothing beyond pausing execution.