|
|
发表于 2008-6-13 22:41:00
|
显示全部楼层
Re:VS2005编译下出现 无调试信息
试试看这个吧:
载自: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=810855&SiteID=1
我也遇到过类似情况,如果这个方案不行,就重新new project, 再载入文件吧
To enable debugging:
1) Goto Project->HelloWorld Properties
2) On the left expand "Configuration Properties"
3) Expand "C/C++"
4) On the left, Select "General"
5) On the right, change "Debug Information Format" to " rogram Database For Edit And Continue (/ZI)"
5) On the left, Select "Optimization"
6) On the right, change "Optimization" to "Disabled (/Od)"
7) On the left, expand "Linker"
8) On the left, select "Debugging"
9) On the right, change "Generate Debug Info" to "Yes"
10) Click ok
11) Set your breakpoints
12) Rebuild your application
Also when running your application use Ctrl+F5 to build and run it, this keeps the console window open long enough for you to see your output. |
|