Visual Studio No Symbols have been loaded for this document

In case anyone has this problem when using 'Attach to process', the answer to this question solved it for me:

Visual Studio is not loading modules when attaching to process

Specifically, switching to 'Native code' in the 'Attach to' options instead of 'Auto'.


In my case, the problem was solved by checking "Use Managed Compatibility Mode" in Tools / Options / Debugging / General.


I have managed to solve this by copying my source sideways and checking out a completely clean copy. I assume it was some setting stored in the projects .suo file.


First of all, it is possible that some of your modules won't show in the module window, because some of them may be loaded dynamically (only as needed).

You might want to check in your project properties under Linker > Debugging > Generate Program Database File and Generate Debug Info. Be sure these two are set properly.

Also, check if C/C++ > General > Debug Information Format is set to Program Database for Edit And Continue (/ZI) or something similar.

I know you mentioned that your symbol file exists, but checking what I just mentioned will ensure you have the right version of your symbol in the right place.

Finally, check if all your project and files in your solution are set to compile as Debug and not Release or something else, because no symbols will be generated (hence none will be loaded) for this project / file.

Hope this helps a bit.