edit-and-continue

Edit and Continue: "Changes are not allowed when the debugger has been attached to an already running process or the code being debugged was optimized at build or run time"

Hello, Even if I create a clean WinForms project, Edit and Continue doesn't work and gives me the error mentioned above. Edit and Continue option is checked in Tools -> Options -> Debugging. Optimization is not enabled. Seems like there is no any managed profiler set up. I am running in Debug mode I am running on x64 CPU and W...

How to edit and continue in Visual Studio 2008 and ASP.Net MVC?

I'm trying to get edit-and-continue working with Visual Studio 2008 with an ASP.Net MVC project. I'm running 64-bit, so that adds to the problem. In Configuration Manager, my active solution platform is x86 and all the projects are targeting Debug x86 as well. In the project properties I have "Enable Edit and Continue" selected. In To...

Why can't you edit and continue debugging when there's a Lambda expression in the method?

I've seen it said in other questions that the Linq query syntax compiles to a Lambda. So why can you not do edit-and-continue when there is a Lambda expression in the method, while with query notation you can? What's most infuriating, and is seriously making me consider switching to using query notation everywhere, is that even if your...

"Changes to 64-bit applications are not allowed" when debugging in Visual Studio 2008

I'm using Visual Studio 2008, C#. I try to use edit-and-continue (edit the code while debugging), and get this exception: "Changes to 64-bit applications are not allowed" Why is that? Is there a workaround? ...

LINQ debug time code change... is it possible in vs2008?

is there any ways to accomplish this? it is really annoying having to restart every time. ...

Is there a way to *completely* disable Edit and Continue?

I was wondering if there was a way to completely lock my code while debugging it within Visual Studio 2008. The code documents lock automatically when running as 64 bit applications, which I greatly prefer; however, I do most of my coding making add-ins for Excel, which is 32 bit. The result is that even though I target 'AnyCPU', the VS ...

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

I'm having some problems with Edit and Continue when using Visual Studio 2010 on a Windows 7 64 bit machine. I've ensured the following Edit and Continue is enabled under Tools>Options>Debugging>Edit and Continue My solution platform is set to x86 My solution configuration is set to Debug All my projects are building for Debug and x86 ...

VB.net Edit-And-Continue: ignore "unable to apply this change while debugging"

When using VB.Net (2008) and paused in debugging, Edit-And-Continue is a great time-saver. However if you change any module/class-level information (variable, sub/function signature, etc), you get the error message like this: "unable to apply this change while debugging" While I can understand the technical challenge to making this wo...

Edit and Continue does not Work in VS 2010 / ASP.Net MVC 2

Although Enable Edit and Continue is checked on the Web tab of my ASP.Net MVC 2 project, I cannot in fact change the source code while running. For example, if I try to edit a controller while paused in the debugger, I cannot change the file (acts as if read only). I found a related post Edit and continue in ASP.NET web projects, howev...

Avoid or embrace C# constructs which break edit-and-continue?

I develop and maintain a large (500k+ LOC) WinForms app written in C# 2.0. It's multi-user and is currently deployed on about 15 machines. The development of the system is ongoing (can be thought of as a perpetual beta), and there's very little done to shield users from potential new bugs that might be introduced in a weekly build. For ...

Edit-and-continue only works on some classes in my VS 2008 project

I have a very strange problem. In my quite large project I have an extensive backend library of classes all belonging to the same Assembly. When I run the code Edit and Continue works fine in all forms and files belonging to the UI, but when I attempt to edit a class I get the "Cannot currently modify this text in the editor. It is read-...