• Visual Studio 201x warning: Cannot find or open the PDB file


    visual studio 2010 正常运行后在output window 跳出一堆warnings:

    'Shaders.exe': Loaded 'C:Documents and SettingsUserMy DocumentsVisual Studio        2010ProjectsShadersWin32DebugShaders.exe', Symbols loaded.
    'Shaders.exe': Loaded 'C:WINDOWSsystem32
    tdll.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.3inQtCored4.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:WINDOWSsystem32
    pcrt4.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.3inQtGuid4.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.3inQtOpenGLd4.dll', Symbols loaded.

    虽然可以在编译选项里面加入 _CRT_SECURE_NO_WARNINGS, 但是出现这种warning,还是想处理一下。


    PDB是visual studio用于debug的信息文件, 属于系统的dll, 因此解决方法有以下几种:

    (1) 关闭debug模块加载错误提示,方法是依次打开 Tools -> Options -> Debugging -> Output Window -> Module Load Messages -> Off

    (2) 下载PDB文件,依次打开 Tools->Options->Debugging->Symbols 在 "Microsoft Symbol Servers" 的复选框上打勾

    推荐使用第一种方法,每次打开project都要加载一大堆PDB,还是比较难以容忍的.
  • 相关阅读:
    python操作mysql
    django 模型
    sox应用实例:平分一个音频文件
    Python list的各种删除元素操作
    Python sort() 和 sorted() 的区别
    Linux去除文件名中的空格
    合并多个MP4文件
    把wav文件等时长切割
    删除文件里的重复行
    Shell 截取字符串
  • 原文地址:https://www.cnblogs.com/make217/p/5605210.html
Copyright © 2020-2023  润新知