Running through my source code, I set a breakpoint, but when single stepping after the break the cursor is off three lines of code and stops on blank lines, comments.
I'm usually not using that feature, but I checked it on my side: it works as expected.
What I'm using otherwise is the global setting here:
Are you sure you used the correct launch configuration?
The compiler optimization level can cause that.
Setting optimization to -O0 to turn it off should fix that problem.
However then you are not truly debugging your production code, nor is it a good idea to run with optimization disabled. That can break some compile-time generated code, it can also cover up problems with missing volatiles or code-motion.
Could you share a screenshot of what you are seeing?
Indeed, if you are using aggressive optimizations, then the compiler might move around code and remove things, so there is no clear indication between source code and generated code. But it should not point to empty lines, or at least I have never seen this. That the current source line jumps around, that is expected if high optimizations are enabled.
Are you sure you have not modified your source files after having them compiled?
Erich