Visual Studio debugger skipping lines

There are a couple of possible causes that spring to mind

  1. If compiled code is different from source files you will see this behaviour… make sure build is up to date

  2. Visual studio optimizes the compiled source often combining multiple lines of source code into a single execuble line… make sure optimization is turned off at least for debug configurations… 0d flag maybe? Check your c++ project configuration to disable optimization

HTH