Debugging information for... cannot be found or does not match

来源:互联网 发布:mac 在线字幕播放器 编辑:程序博客网 时间:2024/06/15 13:41

ErrorMsg:

Debugginginformation (Debugging with VS2005) for "YourProject.exe" cannot befound or does not match. Binary was not built with debug information.

 

Resolution: 

Toenable debugging:

 

1)Goto Project->HelloWorld Properties

2) Onthe left expand "Configuration Properties"

3)Expand "C/C++"

4) Onthe left, Select "General"

5) Onthe right, change "Debug Information Format" to "ProgramDatabase For Edit And Continue (/ZI)"

5) Onthe left, Select "Optimization"

6) Onthe right, change "Optimization" to "Disabled (/Od)"

7) Onthe left, expand "Linker"

8) Onthe left, select "Debugging"

9) Onthe right, change "Generate Debug Info" to "Yes"

10)Click ok

11)Set your breakpoints

12)Rebuild your application

 

Alsowhen running your application use Ctrl+F5 to build and run it, this keeps theconsole window open long enough for you to see your output.

 

BUTstill doesn’t work with above configurations since the corresponding pdb fileis generated. At last it’s using the “Precompiled header” that causes the error.Change to use  precompiled header, andadd the .h file with stdafx.h, then we can debug now. I think the  precompiled header have something to do withthe pdb file format.

 

原创粉丝点击