8

Recently when I've been debugging my application, I've been able to write code into C# files when the application isn't in the broken state. I've tried totally disabling the "Edit and Continue" setting in the visual studio options but that doesn't seem to be working.

What I'm expecting to happen is when I'm debugging and I type into a C# file, I want that popup that says "Changes are not allowed while the application is running" prompting me to put a breakpoint in my code to apply changes during runtime while the application is in the paused state. I'm not sure if this was a change that was introduced into the latest 2019 build or if there's something wrong with my options. Any ideas on this one would be great.

For reference, this is the popup that I want:

enter image description here

and these are my settings:

enter image description here

and proof of the functionality that I don't want

enter image description here

3
  • 2
    Looks like a bug - I upvoted your VS feedback item too. Commented Oct 9, 2019 at 11:18
  • @Postlagerkarte thanks. Hopefully they get it sorted. Was mostly seeing if anyone else had a similar issue and knew of some kind of work-around. Commented Oct 9, 2019 at 13:05
  • 1
    According to their feedback It's a feature not a bug. Interesting :) I post it as an answer so others can find it here in case the stumble upon this aswell. Commented Oct 10, 2019 at 18:57

2 Answers 2

5

According to the VS Team this works as designed:

This behavior you described is expected for Visual Studio 16.3. We went through several changes on Edit and Continue and now allow editing the code while the application is running. Any errors or warnings regarding your changes will show up at the Error List Window. In order to apply these changes, you simply have to be on a break state (e.g. break all or stop on a breakpoint) and continue from there.

Source: https://developercommunity.visualstudio.com/content/problem/768979/able-to-type-while-debugging.html

Sign up to request clarification or add additional context in comments.

Comments

-2

Tools > Options > Debugging > General, select Edit and Continue in the right pane.

2 Comments

That does not stop me from typing in the code editor while debugging.
See: stackoverflow.com/a/5673006/7272863 If you are on Win 7: Turn off IntelliTrace: If you are on Win 10, IT is compatible with Edit & Continue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.