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
1
vote
1 answer

Edit and Continue in VS2019

I've just updated a major C++ project from VS2010 to VS2019, and I'm having problems getting Edit and Continue to work like it used to, specifically in relation to the 'Require source files to exactly match the original version' setting (which I…
1
vote
0 answers

Change color for Warning: ENC1003 Changes made in project will not be applied while the application is running

I have Edit and Continue enabled, but every small change I make to my project causes this warning to appear at runtime. I don't mind the warning per se, but the problematic code shows in the editor with a green squiggly underline. This make it…
Dave
  • 3,676
  • 4
  • 28
  • 39
1
vote
0 answers

'Silently' break execution in Visual Studio (without going to source)

Edit-and-Continue is really handy, but each time I break the execution of my program to begin editing, it either takes me to Program.cs or some core library VS doesn't have symbols for. Is there any way to make VS effectively break, but not navigate…
Patrick
  • 419
  • 4
  • 16
1
vote
0 answers

VS2015 - Local fields/references reset to null after edit and continue?

For a particular large solution/project I'm working on, I've noticed if I do an edit and continue all the local fields & references in the method where I did the change will be reset to null. I've quickly checked this with a small console…
MJF
  • 605
  • 5
  • 18
1
vote
1 answer

Edit & continue not working in VS2015 Update 3 (x64)

After a bit of nightmare getting Vs2015 update 3 installed, as per this related question, I rebuilt my MFC C++ project to see how the update performed only to find Edit and Continue is no longer working! Specifically, making any change to any file…
SmacL
  • 22,555
  • 12
  • 95
  • 149
1
vote
1 answer

Edit and Continue doesn't work (C++, Visual Studio Community 2015)

Visual Studio 2015 never applies my code changes when I break, make a code change, then continue. It gives me this message in the Output window: -------- Edit and Continue build started -------- --------------------- Done…
KTC
  • 420
  • 5
  • 15
1
vote
1 answer

Is there a way to detect if the debugger has been used, from within the program being debugged?

I have an internal consistency check in my program that verifies whether two runs of the same code, with the same inputs, give identical results. The idea is to detect unaccounted-for inputs, during development. If the check fails, it breaks into…
Andrew Russell
  • 26,924
  • 7
  • 58
  • 104
1
vote
0 answers

Edit-and-continue breaks running debug instance

I'm working on a project where I use a third party library which seem to be giving me some trouble. The project is a game using MonoGame and FarseerPhysics. Code that's causing the issue (github below): private void DrawDebug(GameTime gameTime,…
MooshBeef
  • 279
  • 1
  • 5
  • 15
1
vote
2 answers

VS2013: Edit and Continue no longer works since upgrading from VS2008

I have just upgraded my fairly large MFC application from VS2008 to VS2013 Professional. After some minor tweaks everything works except Edit and Continue. E.g. after breaking, I change a code line "x=2" to "x=1" where x is a local variable. On…
1
vote
1 answer

Why not use Edit and Continue in visual studio?

Edit and Continue looks like a great option, so why Microsoft made it optional (you have to check the relevant checkbox to make it work)? I read in this post that it works by leaving some extra room around functions in the binary image, does it have…
1
vote
0 answers

Better Edit and Continue workflow in Visual Studio

I use Edit and Continue all the time in Visual Studio, but the whole process is kind of a hassle. This is my current workflow while I'm running something in debug mode: 1) Press the "pause" button (or hotkey: ctrl+alt+pause). If a new file opened: …
KTC
  • 420
  • 5
  • 15
1
vote
0 answers

How do I enable editing JavaScript files while debugging in Visual Studio 2013

How do I enable editing JavaScript files while debugging in Visual Studio 2013 This works in VS2010 by simply disabling Edit and Continue. This is useful as you can change the Javascript code then refresh the browser and the debugger remains…
Justin
  • 3,255
  • 3
  • 22
  • 20
1
vote
2 answers

Run Two Projects on Same Visual Studio Development Server

I have two web projects that I want to run in the same domain in VS2010. How do I do this, still keep edit and continue, and still load Http Modules? I tried the following: specifying the same port in project settings with different virtual paths…
John Tseng
  • 6,262
  • 2
  • 27
  • 35
1
vote
1 answer

How do I find delegates, anonymous methods and lambda expressions in my code?

I like Edit-and-Continue very much, so much that I want to find all kinds of things that prevent it from working and move them away into separate methods, change to regular methods or something. Problem is I can't easily locate them in my code. Is…
user1306322
  • 8,561
  • 18
  • 61
  • 122
1
vote
1 answer

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.
Luiscencio
  • 3,855
  • 13
  • 43
  • 74