“binary was not built with debug information ” warning meaning in mfc application?

坚强是说给别人听的谎言 提交于 2019-11-28 19:15:50

It seems that your binary was build in Release mode

Now there are two ways which you can follow....

  • build the binary with "Debug" configuration
  • change the project settings so that a Program Database file (PDB) is generated in the release mode.

    Now you can generate PDB from the property window...

Abdul Rauf

If your project is already in Debug mode. Please check Advanced Build Settings Dialog Box in Build tab of project.

Make sure that Debug Info is not set to none

Reference:

Stackoverflow

MSDN

Another possible way you can see this error is if you're attempting to debug native code (C++) from managed code (C#) and the manage code's csproj is set to Native Only debugging. To fix it:

  1. Right click your csproj in VS and choose Properties
  2. On the Debug tab, set the Debugger type - Application process: to Mixed (Managed and Native)
mkkhedawat

In VS 2010 : Project Properties >> Configuration Properties >> Linker >> Debugging >> Generate Debug Info : Set it as "Yes"

In VS 2015 : Project Properties >> Configuration Properties >> Linker >> Debugging >> Generate Debug Info : Set it as "true"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!