Source files are different from built modules

Adding this issue for archival purposes and will also be adding the answer…

When debugging my game, I am getting some of the breakpoints as not being valid. Additionally if I clicked on some of the functions in the callstack, I get: “The source file is different from when the module was built”.

I have valid DLLs and PDBs in the binary folders. What gives?

If you are using DebugGame (instead of Development), then you also need to change your command-line to include -debug such as…

“$(SolutionDir)$(ProjectName).uproject” -debug

Without the -debug, it will attempt to load the non-debug DLLs and PDBs.