windows “二进制文件不是用调试信息构建的”警告在 mfc 应用程序中是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12721864/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:56:49  来源:igfitidea点击:

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

windowsvisual-studio-2010visual-c++mfcmedia-player

提问by vasanth kumar

I am getting the following Warningwhen i run my Windows Application(MFC) in Windows 7.

当我在 Windows 7 中运行我的 Windows 应用程序 (MFC) 时,我收到以下警告

'XXX.exe': Loaded 'C:\2010\Debug\bin\plugins\control\libhotkeys_plugin.dll', Binary was not built with debug information.

'XXX.exe': Loaded 'C:\2010\Debug\bin\plugins\control\libhotkeys_plugin.dll', Binary was not built with debug information.

Please Help Me out.Thank You

请帮帮我。谢谢

回答by vikky

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...

  • 使用“调试”配置构建二进制文件
  • 更改项目设置,以便在发布模式下生成程序数据库文件 (PDB)。

    现在您可以从属性窗口生成 PDB...

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

回答by Abdul Rauf

If your project is already in Debug mode. Please check AdvancedBuild Settings Dialog Box in Buildtab of project.

如果您的项目已经处于调试模式。请检查项目构建选项卡中的高级构建设置对话框。

Make sure that Debug Infois not set to none enter image description hereReference:

确保调试信息未设置为无 在此处输入图片说明参考:

Stackoverflow

堆栈溢出

MSDN

MSDN

回答by Weston

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 Onlydebugging. To fix it:

看到此错误的另一种可能方式是,如果您尝试从托管代码 (C#) 调试本机代码 (C++),并且管理代码的 csproj 设置为仅本机调试。要解决这个问题:

  1. Right click your csproj in VS and choose Properties
  2. On the Debugtab, set the Debugger type - Application process:to Mixed (Managed and Native)
  1. 在 VS 中右键单击您的 csproj 并选择属性
  2. Debug选项卡上,将Debugger type - Application process: 设置Mixed (Managed and Native)

回答by mkkhedawat

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

在VS 2010中: 项目属性>>配置属性>>链接器>>调试>>生成调试信息将其设置为“是”

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

在VS 2015中: 项目属性>>配置属性>>链接器>>调试>>生成调试信息:将其设置为“true”

回答by mdora7

If you sure that there is no problem. You may also check application pool physical path, because sometimes path is keeping local path hence it involves different version.

如果你确定没有问题。您还可以检查应用程序池物理路径,因为有时路径保持本地路径,因此它涉及不同的版本。

For Instance in IIS,

对于 IIS 中的实例,

->Sites

->网站

->>Specified site

->>指定地点

->>>Look the at right window

->>>看右边的窗口

->>>>Look at the Actions Button and click the Basic Settings

->>>>查看操作按钮并单击基本设置

->>>>>Check the physical path

->>>>>检查物理路径