In a normal window i can put the breakpoint wherever i need to but in debug window why my scope gets limited?Please help,i am new to keil.
and another:
5. Understand compiler optimisation.
https://www.avrfreaks.net/forum/tutcoptimization-and-importance-volatile-gcc
(while that focuses on AVR-GCC, the principles are general).
EDIT
Also: https://www.avrfreaks.net/forum/shortcuts-taken-optimized-code-may-occasionally-sic-be-surprising