1

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 ----------------------

Edit and Continue : Successfully applied code changes.

It lies; it didn't apply anything. If a set a breakpoint in that file again, it tells me:

The breakpoint will not currently be hit. The source code is different from the original version.

I can't find any incorrect compiler flags, and Edit and Continue is enabled in the options:

enter image description here

I've used Edit and Continue a lot in VS 2005 and 2010 and it worked just fine. (Well, it worked more than 0% of the time at least.) What's going on in 2015?

KTC
  • 420
  • 5
  • 15
  • Can you try unchecking "Allow precompiling (Native only)" and ensuring that "Require source files to exactly match the original version" is checked? – Ramkumar Jul 13 '16 at 18:09
  • @Ramkumar "Require source files to exactly match..." is checked. I tried unchecking "Allow precompiling (Native only)" and it did not help. – KTC Jul 15 '16 at 05:00
  • I see. Is this specific to your project or does it happen even with a hello world Win32 Console App? Also, if you haven't already, could you try installing Update 3? – Ramkumar Jul 15 '16 at 18:21
  • @Ramkumar Update 3 appears to have fixed it. – KTC Jul 16 '16 at 23:04
  • Awesome, glad that's fixed. – Ramkumar Jul 18 '16 at 06:43

1 Answers1

0

It works now after installing Update 3.

KTC
  • 420
  • 5
  • 15