VS2013:自从VS2008升级后,编辑并继续不再有效 [英] VS2013: Edit and Continue no longer works since upgrading from VS2008

查看:168
本文介绍了VS2013:自从VS2008升级后,编辑并继续不再有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将相当大的MFC应用程序从VS2008升级到VS2013。经过一些小的调整(指定/ SAFESH:不,WINVER = 0x0601)一切正常,除了编辑和继续,它在VS2008下运行得非常好。 InVS2013,即使我只是添加注释行,它重新编译,说完成,然后抛出以下消息:



编辑并继续:错误1006:添加,重命名,删除或更改了数据类型或初始化的全局或静态变量:___ ImageBase(引用者:c:\ temp \ process \ debug \ jlglob.obj)



显然我没有改变全局变量。我在网上搜索并检查了以下没有帮助的东西:

- 禁用所有优化

- 设置编辑和继续/ ZI的程序数据库

- 不使用预编译标题

- / SAFESH:NO

- 平台工具集 - Visual Studio 2013(v120)

- 删除所有中间文件目录,包括.tlog文件

- 启用Native EnC,如在VS2008中



任何想法?这非常令人沮丧!!

I just upgraded my fairly large MFC application from VS2008 to VS2013. After some minor tweaks (specify /SAFESH:No, WINVER=0x0601) everything works except Edit and Continue, which worked brilliantly under VS2008. InVS2013, even if I just add a comment line, it recompiles, says "Done", and then throws out the following message:

Edit and Continue : error 1006 : A global or static variable was added, renamed, removed, or changed data type or initialization: ___ImageBase (referenced by: c:\temp\process\debug\jlglob.obj)

Clearly I have not changed a global variable. I have scoured the web and checked the following things, which have not helped:
- disabled all optimisation
- set "Program Database for Edit and Continue /ZI"
- not using Precompiled Headers
- /SAFESH:NO
- Platform Toolset - Visual Studio 2013 (v120)
- deleted all intermediate file directories, including .tlog files
- enable Native EnC, as in VS2008

Any ideas anyone? This is very frustrating!!

推荐答案

VS2015社区版本似乎已经修复了问题。
Problem seems to have been fixed in VS2015 Community edition.


我有完全一样的问题。在我的情况下,我发现我需要实际启用预编译头。启用预编译头文件编辑后继续开始工作。

您需要设置:

创建 - 用于StdAfx.cpp

使用 - 用于其他cpp文件

只需将预编译头文件添加到一个特定文件中,我想在调试期间进行更改,使编辑并继续工作。
I had absolutely the same issue. In my case I had found that I need to actually enable "Precompiled headers". After enabling the precompiled headers edit and continue started to work.
You'll need to set:
"Create" - for StdAfx.cpp
"Use" - for other cpp files
Just enabling precompiled headers to one particular file, in which I want to make changes during debug, made "Edit and Continue" work.


这篇关于VS2013:自从VS2008升级后,编辑并继续不再有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆