There are a couple of possible causes that spring to mind
-
If compiled code is different from source files you will see this behaviour… make sure build is up to date
-
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