- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
vs2010调试不成功解决办法总结(国外英文资料)
vs2010调试不成功解决办法总结(国外英文资料)
Phenomenon: in vs2008, create an empty project and add a c + + file main.cc
# include iostream
Using namespace STD.
Int main ()
{
Cout
Return 0; s.
}
The program can be compiled, but execution, whether debug or release, occurs
Unable to find the debug information for XXX.exe , or debug information that does not match. The debug information is not used to generate binary files.
I found some answers from the Internet and finally solved the problem. As long as it is establishing the project should not empty project, and shall set up a win32 console application. This can really solve the problem. As long as you choose is the win32 console application in additional options to choose not to choose empty project
Heres the answer:
The problem is that you dont generate debug file PDB in an empty project, so you cant debug it.
To get the project to generate the PDB file, you need to change:
Item properties, configuration properties - link- Generate Debug Info from no to yes
But thats not enough, and you need to change:
Item properties, configuration properties - c/c + + - debug information format is/ZI
Item properties, configuration properties - c/c + + - optimization is Disabled
Because in order to generate this file, you need to set the format of the debug information and turn off the O2, and change the switch that linker generates for debugging information
]
When you run the sample program for FBX, you will find the prompt: debug information of xxxx.exe cannot be found or not match, so the first thing you can do is find the relevant information online, and you will get the following advice:
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 Program Database For Edit And Continue (/ ZI)
5) On the left, Select Optimization
6) On the right, change Optimization to Disabled (/ O
文档评论(0)