简体   繁体   English

Visual Studio 2012:“应用代码更改”已禁用C ++

[英]Visual Studio 2012: “Apply Code Changes” is disabled C++

Recently converted our projects over to 2012 from 2010 (winapi/desktop/c++/32bit). 最近将我们的项目从2010年转换为2012年(winapi / desktop / c ++ / 32bit)。

And now the "Apply Code Changes" button seems to remain disabled. 现在,“应用代码更改”按钮似乎保持禁用状态。 Similarly, when I make a change to the source I'm currently debugging, my breakpoints go white (meaning not enabled due to source mismatch). 同样,当我更改当前正在调试的源时,断点变为白色(表示由于源不匹配而未启用)。

I've not changed the project settings explicitly, but I have verified that this is a debug build, that "incremental linking" is enabled. 我没有显式更改项目设置,但是我已验证这是调试版本,并且启用了“增量链接”。

There is a setting I'm unfamiliar with that is blank "create hot patchable image", but I'm not sure if that is related to debug edit & continue or not (the MSDN for it is unclear, whereas the incremental linking is quite clear that it is required. [UPDATE: this has nothing to do with it] 有一个我不熟悉的设置是空白的“创建可修补的热映像”,但是我不确定该设置是否与调试编辑并继续有关(对于MSDN,目前尚不清楚,而增量链接相当明确指出它是必需的。

Anyone know what is required in 2012 to fully enable edit & continue in 2012 for C++ (NOT managed - ordinary C++)? 有人知道2012年要完全启用C ++并在2012年继续进行编辑(不托管-普通C ++)需要什么吗?


Some extra info: Desktop GUI .exe target, statically linked to MFC and CRT. 一些额外的信息:桌面GUI .exe目标,静态链接到MFC和CRT。 Unicode. Unicode。 All libraries double-checked for debug, incremental linking, and program database for edit & continue. 所有库都经过双重检查,以进行调试,增量链接以及程序数据库以进行编辑和继续。

Try starting over by deleting everything in the Debug folder and all generated files, do a "Build/Clean Solution" and "Rebuild All." 尝试通过删除Debug文件夹中的所有内容和所有生成的文件重新开始,执行“生成/清理解决方案”和“全部重建”。

EDIT: As a last resort, try reading the documentation: http://msdn.microsoft.com/en-us/library/esaeyddf.aspx Try/Tools/Options/Debugging/Edit and Continue/Ask Me First 编辑:作为最后的选择,请尝试阅读文档: http : //msdn.microsoft.com/zh-cn/library/esaeyddf.aspx Try / Tools / Options / Debugging / Edit and Continue andAsk Me首先


Quick Answer: 快速回答:
+ Tools +工具
++ Options ++选项
+++ Debugging +++调试
++++ Edit and Continue ++++编辑并继续
+++++ Native-only options +++++仅本机选项
++++++ Enable native Edit and Continue <- Set this ++++++启用本机编辑并继续<-设置此

我也遇到了这个问题,这是我的方法:项目-> XXXX(项目名称)属性,转到C / C ++->常规,检查调试信息格式,正确的应该是:用于编辑并继续的程序数据库(/ ZI)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM