Forum Discussion
Altera_Forum
Honored Contributor
11 years agoYes, in -o2 and -o3 modes debugging is very difficult.
I write code:volatile int i = 0; while (!(i&1)) i += 2; for "hang" until I break execution and go to next line, variable "i" lay in stack, read/write in cycle and displayed incorrect, changing it to 1 in Variables window not readed in code, will be used "Set PC to Selection". About "Set PC to Selection": if press a left mouse button in necessary line, then press right button to call context menu in any other line an select "Set PC to Selection", code execution moves to first place line !