Home >Backend Development >C++ >Why Does Visual Studio C 2010 Display a \'Cannot Find or Open PDB File\' Error?
Cannot Find or Open PDB File in Visual Studio C 2010: A Debugging Obstacle
When running a Visual Studio C project, you may encounter an error message stating "Cannot find or open the PDB file" for certain system DLLs. This error indicates that Visual Studio cannot locate the corresponding debug information files (.pdb) necessary for debugging.
Cause and Solution
The missing PDB files are for system libraries such as ntdll.dll, kernel32.dll, and user32.dll. These libraries are not typically used during debugging, as Visual Studio has built-in symbols for them. However, the error message can be ignored if you do not require the ability to debug these specific modules.
Locating PDB Files Manually
To automatically download the PDB files for system DLLs, go to Tools -> Options -> Debugging -> Symbols in Visual Studio. Select the checkbox labelled "Microsoft Symbol Servers". Visual Studio will then attempt to download the required PDB files from Microsoft's symbol servers.
Ignoring the Error
If you are not interested in debugging the system DLLs, you can simply ignore the error message. The application will continue to run without any issues.
Additional Information
If you still need to debug the system DLLs, you can manually locate and download the corresponding PDB files from Microsoft's Symbol Server. However, these files may not always be available for certain versions of Windows.
The above is the detailed content of Why Does Visual Studio C 2010 Display a \'Cannot Find or Open PDB File\' Error?. For more information, please follow other related articles on the PHP Chinese website!