The debugger should be able to verify that the files it opens in the IDE match the version that was compiled, by checking an MD5 hash in the symbol file.
This is now supported in sdb using the Location.SourceFileHash property.
*** Bug 5328 has been marked as a duplicate of this bug. ***
What should we do if the hashes don't match?