Can't edit and continue when using Visual Studio 2010 on a 64 bit machine, app targets x86

烈酒焚心 提交于 2019-11-28 18:09:47
Sayed Ibrahim Hashimi

OK guys I figured it out. The other night I was playing around with IntelliTrace and changed the setting to collect call information. I didn't notice the warning on that page stating "Edit and continue is disabled when collecting Call Information"! See screen shot.


(source: sedotech.com)

So I just disabled that and I was good to go. Thanks, that was really annoying.

Another solution is to check if any 3rd party references included and check their options for: Embed Interop Types. Set it to False.

One more option to check to enable the Edit and Continue Option.

Go to Project Properties and check the "Enable Edit and continue" Option

AliReza

I found the problem!

In Advance Compile Option (in Project Properties) Uncheck Enable Optizimations

mona

I had that also solved it by noticing that solution configuration was on release and not debug.

Changed it to debug and now I can edit and continue.

mine was working after i have done following

under advanced compile options set target CPU to x86 (was set to any cpu)

and its working fine now.

If you want to edit code after compile.

Just compile with ctrl + F5

another reason 1-Right click on Project file then Properties.
2-Compile --> advanced compile options.
3-Choose to generate "full" instead of "pdb-only" debug info.

At the msdn site,

http://msdn.microsoft.com/en-us/library/dd264944(v=vs.100).aspx

You can read about it:

"However, collecting calls and parameters will increase performance overhead, use additional disk space, and disable the Edit and Continue feature of the Visual Studio debugger."

Under Visual Studio 2013 edit and continue now works for the x64 platform.

Under Code Generation section, make sure option "Enable Function-Level linking" is set to Yes (/Gy).

I had that also solved it by noticing that solution configuration was on AnyCPU debug and Project was x86 debug

Changed it to x86 and now I can edit and continue.

I have a solution for a unique situation.

My Edit and Continue started failing in one function in VS2013. I discovered it was because I was doing some Office Interop to Excel in that function. I moved the Interop code to its own function and Edit and Continue started working in the original function again.

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