2019 VS is moving breakpoints. From a GIF below you can see that a breakpoint is set on a line 225 after I hit Debug the breakpoint is being moved to a line 227. Also when I press F10 (step over) the lines are being skipped as well.
I did research and discovered possible reasons of the problem:
- Enabled optimization
- Outdated source code
- Disassembly code is different from the source code
- The compiled binaries were not compiled with the current source code
None of the above is true.
Fun enough that the problem occurs on our remote building machine only. Local builds are OK.
So what could be the reason?
