VS2008 如何将Release版本设置可以调试的DEBUG版本

VS2008 如何将Release版本设置可以调试的DEBUG版本

只需设置三个部分:

项目->属性->C/C++->General->Debug Information Format->Program Database for Edit & Continue (/ZI)

                 


项目->属性->C/C++->Optimization->Optimization->Disabled(/Od)

                


项目->属性->Linker->Debugging->Generate Debug Info->Yes(/DEBUG)

                

 

当出现设置了上面三个选项后 依然不能挂住断点,那请在试下下面的设置:

有时Release下会出现源文件与PDB文件不匹配的问题:

菜单【Tools】->【Options】->【Debugging】->【General】去掉【Require source files to exactly match original version】选项

            

 

 

http://blog.csdn.net/chinahaerbin/article/details/8452388

posted @ 2018-01-08 21:05  findumars  Views(1074)  Comments(0Edit  收藏  举报