在release模式下debug

Debug Information to release dlls
 
Text:  There are 3 settings to add debug information to release dlls under project -> Properties. Make sure you change your Configuration to Release and set the following properties.
 
Under Linker Properties  --->  Debug --->
      General Debug Info – Yes (/DEBUG)
      Generate Program Database File  - $(OutDir)/$(ProjectName).pdb

   Linker Properties ---->   Optimization ----->
 References – Eliminate Unreferenced Data (/OPT:REF)

////////////////////////////////////////

中文版

让Release dll 包含调试信息

需要设置二大项

1:项目 ->属性->连接器->调试->

生成调试信息------是(/debug)

生成程序数据库文件 -----$(OutDir)/$(ProjectName).pdb

2:

连接器--->优化---->

引用------>消除未引用数据 (/OPT:REF)

原文地址:https://www.cnblogs.com/FCoding/p/2576814.html