大家好,又见面了,我是你们的朋友全栈君。
使用VS-debug模式下编译的时候,经常出现以下问题:
‘Dlib.exe’ (Win32): Loaded ‘D:\c++\Dlib\x64\Debug\Dlib.exe’. Symbols loaded.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\ntdll.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\kernel32.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\KernelBase.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\user32.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\win32u.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32full.dll’. Cannot find or open the PDB file.
‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\msvcp_win.dll’. Cannot find or open the PDB file.
上网查看原因,得知是程序输出的地方是Windows系统,而不是vs2010。所以调试的话需要调用系统的一些资源,要到microsoft官网上下载,这样每次调试都比较耗费时间(操作方法:Tools—Options—Debugging—Symbols, 将microsoft symbol servers 勾选上即可),因为每次调试会从官网下载符号服务文件吧。
解决办法,可以按control+F5(build)直接运行,而且这样操作的话dos窗口就不会一闪而过了。
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/145021.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...