在调试VS 2013 ASP.NET不能修改code [英] VS 2013 ASP.NET can't modify the code while debugging

查看:506
本文介绍了在调试VS 2013 ASP.NET不能修改code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与已经从2005-2015 VS> 2010-> 2013

I'm working with a ASP.NET 2.0 project that has been upgraded from vs 2005->2010->2013.

在VS 2005和2010年我可以修改code,而调试,保存更改,并与应用的更改重新加载页面。

In vs 2005 and 2010 I can modify the code while debugging, save the changes, and reload the page with the changes applied.

现在在VS 2013我不能做到这一点。无法更改code时,我打一个断点。尝试激活所有checkboxs编辑和放大器;继续选项,但是毫无效果

Now in vs 2013 I can't do this. Can't change the code when I hit a breakpoint. Tried to activate all checkboxs in "Edit & Continue" options, but nothing worked.

这很烦人不得不停止调试并重新编译应用程序调试的变化。

It's annoying having to stop debugging and recompile the app to debug again the changes.

我该如何解决呢?

推荐答案

终于找到它了。这里是我的发现。

FINALLY figured it out. Here are my findings.

重现:
我创建了2香草项目:

To Reproduce: I created 2 vanilla projects:

1) .net 4.0 project with VS2012 (ProjectA) 

2) .net 4.5 project with VS2013 (ProjectB).  

然后用VS2013打开项目A,我不能编辑和放大器;继续(E和C)。

Then opened ProjectA with VS2013 and I couldn't Edit & Continue (E&C).

分辨率:

在VS2013,进入项目的属性中的生成选项卡,取消选择优化code。

In VS2013, go into the project's properties on the "Build" tab and uncheck "Optimize Code".

我仍然不知道为什么,我可以编辑和放大器;继续VS2012甚至与优化code检查,但在VS2013,这是行不通的。

I still don't know why I could Edit & Continue in VS2012 even with "Optimize Code" checked, but in VS2013, it won't work.

资源:

下面是帮助我找出问题所在的链接:

Here is the link that aided me in locating the problem:

<一个href=\"http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(vs.debug.ENC.SupportedButNotAvaiable);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.0);k(DevLang-csharp)&rd=true\" rel=\"nofollow\">http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(vs.debug.ENC.SupportedButNotAvaiable);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.0);k(DevLang-csharp)&rd=true

希望这有助于!

这篇关于在调试VS 2013 ASP.NET不能修改code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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