vs2010调试不成功解决办法总结(国外英文资料).docVIP

  • 11
  • 0
  • 约2.65万字
  • 约 8页
  • 2017-06-10 发布于河南
  • 举报

vs2010调试不成功解决办法总结(国外英文资料).doc

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)

1亿VIP精品文档

相关文档