Why is there a pdb file in my Release directory?

前端 未结 2 1065
暖寄归人
暖寄归人 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:30

    It depends on the project settings. Just happens that in Release version a .pdb is also generated by default. It will not hurt you - just don't ship it to the customer.

    To skip its creation go to Linker->Debugging in project settings and set "Generate Debug Info" to "No".

提交回复
热议问题