debug版本的内联函数调试

来源:互联网 发布:汽配数据库 编辑:程序博客网 时间:2024/06/06 17:02

调试 debug版本的内联函数时,会发现内联函数并没有被展开,需要设置C/C++->Optimization->Inline Function Expansion 为 “Only __inline (/Ob1)”。

再编译,会有一个错误,“cl : Command line error D8016 : '/Ob1' and '/ZI' command-line options are incompatible”。

设置C/C++->General->Debug Information Format 为 “Program Database (/Zi)” 即可。

0 0
原创粉丝点击