I have declared Local variables with no optimization (level 0). Problem is local vars get assigned to register & I cannot view their values.
This can be done by declaring them volatile & global while debugging , but can it done without it.
Sometimes I also have this problem - only with some variables.
I usually then open the disassembly window and check which registers are concerned, and then I check the registers window for the variables. This works well.