1. Some possible solutions:
- You are compiling in release instead of debug
- You need to clean/build or rebuild
- You don't have your pdb files being generated in the same directory as the exe
- You have a mismatching pdb, maybe the copied source is newer than today's date and something isn't building properly.
- Try cleaning out all debug object files
- You are attaching to a process that you started from a different location from where your build exe and pdb exist
- Restart Visual Studio
2.
- Right click on your project -> Properties
- Configuration properties -> Linker -> Debugging
- Switch "Generate Debug Info" from No to Yes