'cannot find or open the pdb file' Visual Studio C++ 2013

'cannot find or open the pdb file' Visual Studio C++ 2013

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

'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 的符号服务器下载它,但现在您不必担心。

尝试转到工具->选项->调试->符号和 select 复选框 "Microsoft Symbol Servers",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

它对我有用。转到 Tools->Options->Debugger->Native 并检查 Load DLL exports。希望这有帮助

使用 VS 2013。尝试以下操作

Tools -> Options -> Debugging -> Output Window -> Module Load Messages -> Off

它将禁用已加载模块的显示。

这里没有问题,这是完全正常的 - 它显示了有关已加载(和未加载)调试信息的信息性消息,以及您的程序正常执行和退出的信息 - 零 return代码表示成功。

如果您在屏幕上看不到任何内容,请使用 CTRL-F5 而不是 F5 尝试 运行 您的程序。

有点晚了,但我想我会分享以防它对任何人有帮助:最有可能的问题只是您的调试控制台(在 运行 时打开的命令行 window你的项目如果是 Windows Console Application) 从上次你 运行 代码时起仍然是打开的。只需关闭 window,然后分别重建 运行:Ctrl + BF5