Cannot find or open the message of the PDB file, pdb exists

I am using Visual Studio 2010, recently updated. The solution contains 25 projects, is a dozen dll and exe. I am trying to debug a specific problem, and I cannot because the characters are not loading.

I get "I can not find or open the PDB file", this is one of the DLLs that the project creates for the PDB file, all the other PDB files load just fine. The PDB file exists in the same directory as the dll, I also cleaned and rebuilt the solution.

In addition, I started filtering the process explorer by the name pdb, it showed that it was found, openly and successfully read. Oddly enough, he also continued to look elsewhere for pdb.

Anyone have any thoughts on this?

+4
source share
3 answers

In most cases, Visual Studio has problems with file descriptors. Visual Studio considers PDB to be used by a process, but this process is Visual Studio (I know something is stupid).

Try rebooting the machine and manually delete the PDB file before building. This usually works for me.

+2
source

Enable Microsoft Symbol Server in debug mode → Settings and Settings → Debugging → Symbols

enter image description here

+1
source

Are you getting multiple projects or assemblies that output the same PDB file? I had a project that I could compile as an EXE or DLL. Of course, by default they overwrite each other's PDB file. Thus, VS will detect that the PDB does not match.

When I switched to VS2010, I solved this problem by setting the Target Name to "$ (ProjectName) _ $ (Configuration)" for ALL projects and configurations.

0
source

All Articles