Skip to main content
 首页 » 编程设计

visual-studio之“无法找到或打开 pdb 文件”Visual Studio C++ 2013

2024年05月22日21shangdawei

我刚刚下载了 VS 2013 Community Edition,并编写了我的第一个应用程序。当我运行它时,它显示在输出部分:

'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\Toshiba\Documents\Visual Studio 2013\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp120d.dll'. Cannot find or open the PDB file. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120d.dll'. Cannot find or open the PDB file. 
The program '[11196] ConsoleApplication1.exe' has exited with code 0 (0x0). 

有什么问题吗?我在很多网站上检查了我的代码,所以我知道问题不在我的代码中。谁能帮我?

请您参考如下方法:

尝试转到“工具”->“选项”->“调试”->“符号”并选中“Microsoft 符号服务器”复选框,Visual Studio 将自动下载 PDB。

PDB is a debug information file used by Visual Studio. These are system DLLs, which you don't have debug symbols for.[...]

参见Cannot find or open the PDB file in Visual Studio C++ 2010