Questions tagged [edit-and-continue]

Edit and Continue is a feature of Microsoft Visual Studio that enables you to make changes to your source code while your program is in break mode.

Edit and Continue is a time-saving feature of Microsoft Visual Studio that enables you to make changes to your source code while your program is in break mode. When you resume execution of the program by choosing an execution command like Continue or Step, Edit and Continue automatically applies the code changes with some limitations. This allows you to make changes to your code during a debugging session, instead of having to stop, recompile your entire program, and restart the debugging session.

This tag should be used for questions relating to the feature.

See: MSDN - Edit and Continue

91 questions
115
votes
38 answers

Edit and Continue: "Changes are not allowed when..."

Even if I create a clean WinForms project, Edit and Continue doesn't work and gives me the error: 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…
nightcoder
  • 13,149
  • 16
  • 64
  • 72
79
votes
27 answers

Visual studio - getting error "Metadata file 'XYZ' could not be found" after edit continue

I have stumbled into an issue that is really annoying. When I debug my software, everything runs OK, but if I hit a breakpoint and edit the code, when I try to continue running I get an error: Metadata file 'XYZ' could not be found After looking…
58
votes
8 answers

"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?
ripper234
  • 222,824
  • 274
  • 634
  • 905
47
votes
23 answers

Edit and continue feature stopped working in Visual Studio 2010

The Visual Studio Edit and Continue feature stopped on Visual Studio 2010, and I don't know what has caused the problem. I am working on a Windows application program using C#. This application was initially developed in Visual Studio 2008, and…
Cracker
  • 916
  • 2
  • 7
  • 16
43
votes
13 answers

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…
29
votes
3 answers

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…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
21
votes
3 answers

Edit and Continue using a Local IIS

Is it possible to have the Edit and Continue option enabled on Visual Studio when debugging using Local IIS instead of IIS express?
user3489866
  • 353
  • 1
  • 4
  • 14
20
votes
3 answers

Edit and Continue on GDB

I know that E&C is a controversial subject and some say that it encourages a wrong approach to debugging, but still - I think we can agree that there are numerous cases when it is clearly useful - experimenting with different values of some…
Kos
  • 70,399
  • 25
  • 169
  • 233
20
votes
10 answers

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…
Bradley Smith
  • 13,353
  • 4
  • 44
  • 57
20
votes
3 answers

Warning LNK4075 when a C++/CLI project references a static lib project with /ZI (Edit And Continue)

I have the following projects in a Visual Studio 2012 solution: Native (no /clr) static lib project, compiled with /ZI for Edit And Continue. C++/CLI DLL project, which references the above static lib. The C++/CLI project builds with the following…
Yodan Tauber
  • 3,907
  • 2
  • 27
  • 48
17
votes
2 answers

Visual studio 2013 + .Net 4.5.1 + Edit and continue 64 bit: not working

Supposedly vs 2013 added support for edit and continue 64 bit (see http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/26/debugging-support-for-64-bit-edit-and-continue-in-visual-studio-2013.aspx). However I can't get it working. After going to…
Clement
  • 3,990
  • 4
  • 43
  • 44
15
votes
5 answers

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…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
14
votes
5 answers

Is it possible to Edit and Continue in Visual Studio 2010 without pausing execution?

I recently watched a bit of Notch's Ludum Dare live stream. He uses Eclipse's hotswap feature extensively while he works on his game. (here is a video of what I am referring to http://www.twitch.tv/notch/b/302823358?t=86m30s) I would like to do the…
zfedoran
  • 2,986
  • 4
  • 22
  • 25
12
votes
4 answers

Error CS7038 (failed to emit module) only in Edit and Continue

I'm debugging a .NET 4.0 application in Visual Studio 2015. My application builds and runs fine, but when I try to edit and continue while running under the debugger, regardless of what changes I make or where I make them in my main project, I get…
adv12
  • 8,443
  • 2
  • 24
  • 48
12
votes
4 answers

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…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
1
2 3 4 5 6 7