Why is there a pdb file in my Release directory?

前端 未结 2 1090
暖寄归人
暖寄归人 2020-12-21 07:44

When I build a release version of a project in Visual Studio 2008, it creates a .pdb file, e.g. for a simple WPF project it generates a .exe and .pdb file.<

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 08:22

    You are right. PDB files are for debugging but you may need to debug release builds too. Saving PDBs of released builds is very important when you want to debug a customer issue and you have the crash dump file related to that issue.

    By the way, generating PDB files does not harm compiler optimizations. If you don't ship it to the customer, there will be no performance implications.

提交回复
热议问题