[Solved] Cannot find or open the PDB file in Visual Studio C++ 2010

I use Visual Studio 2010 C++ and my project builds without errors but when I run it I get this. I am on Windows XP.

'Shaders.exe': Loaded 'C:Documents and SettingsUserMy DocumentsVisual Studio        2010ProjectsShadersWin32DebugShaders.exe', Symbols loaded.
'Shaders.exe': Loaded 'C:WINDOWSsystem32ntdll.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32kernel32.dll', Cannot find or open the PDB  file
'Shaders.exe': Loaded 'C:qt-everywhere-opensource-src-4.8.3binQtCored4.dll', Symbols  loaded.
'Shaders.exe': Loaded 'C:WINDOWSsystem32user32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32gdi32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32ole32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32advapi32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32rpcrt4.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32secur32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32msvcrt.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32ws2_32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32ws2help.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32msvcp100d.dll', Symbols loaded.
'Shaders.exe': Loaded 'C:WINDOWSsystem32msvcr100d.dll', Symbols loaded.
'Shaders.exe': Loaded 'C:qt-everywhere-opensource-src-4.8.3binQtGuid4.dll', Symbols loaded.
'Shaders.exe': Loaded 'C:WINDOWSsystem32comdlg32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32comctl32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32shell32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32shlwapi.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32oleaut32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32imm32.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32winmm.dll', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:WINDOWSsystem32winspool.drv', Cannot find or open the PDB file
'Shaders.exe': Loaded 'C:qt-everywhere-opensource-src-4.8.3binQtOpenGLd4.dll', Symbols loaded.

Thanks

Solution #1:

PDB is a debug information file used by Visual Studio. These are system DLLs, which you don’t have debug symbols for. Go to Tools->Options->Debugging->Symbols and select checkbox “Microsoft Symbol Servers”, Visual Studio will download PDBs automatically. Or you may just ignore these warnings if you don’t need to see correct call stack in these modules.

Respondent: Paul

Solution #2:

Working with VS 2013.
Try the following Tools -> Options -> Debugging -> Output Window -> Module Load Messages -> Off

It will disable the display of modules loaded.

Respondent: Luis Salazar

Solution #3:

Answer by Paul is right, I am just putting the visual to easily get there.

Go to Tools->Options->Debugging->Symbols

Set the checkbox marked in red and it will download the pdb files from microsoft. When you set the checkbox, it will also set a default path for the pdb files in the edit box under, you don’t need to change that.

enter image description here

Respondent: zar

Solution #4:

If you have more as one Project in your Project Map use THE SAME hard coded PathFile PDB Name in all your Sub-Projects:

Use e.g.

D:Visual Studio Projectsmy_appMyFile.pdb

Dont use e.g.

$(IntDir)MyFile.pdb

in all the Sub-Projects !!!

= Compiler Param /Fd

Respondent: Ingo

Solution #5:

This can also happen if you don’t have Modify permissions on the symbol cache directory configured in Tools, Options, Debugging, Symbols.

Respondent: EM0

Solution #6:

I ran into a similar problem where Visual Studio (2017) said it could not find my project’s PDB file. I could see the PDB file did exist in the correct path. I had to Clean and Rebuild the project, then Visual Studio recognized the PDB file and debugging worked.

Respondent: jsl4980

Solution #7:

you just add the path of .pdb to work directory of VS!

Respondent: rich

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.