The following points needs to be considered while using Stepping Backwards, or
Move to Line feature:
- This only changes the program counter. Any variable changes/etc are not affected or reverted.
- In case of highly optimized code, there might be multiple sequence points per source line. So doing this for highly optimized code might not work correctly.
- It works ok within a function. It is not recommended to use it, for example, to set the PC outside of a function, because the context/stack frame is not set up.
Tip: You can use the Move to Line feature frequently to advance the program execution.
For example, to bypass some long sequences, or to get out of an endless loop.