#include int main(void){ int temp = 0; while(1) { for (int i = 0;i<100;i++){ if (i == 30){ temp++; } } } } /* 1. Start debug and break ALT-F5 or use Debug menu 2. Highlight variable temp in the code, right-click and select Add Watch 3. In the watch1 window below, note that the value is "Optimized Away" 4. Stop the debugging session using the Debug Menu 5. Go to project properties, Toolchain, AVR/GNU C Compiler->Optimization and set optimization level to None (compiler option -O0) 6. Restart debugging session using Debug and Break, 7. Set watches on variables temp and i and step through the code using F10 --Note, you can also use the watch window to change values (try setting i to 98) */