You should report this using the Report a Problem option in Visual Studio. This will allow the VS team to look at what is going on with your specific case.
VS 2022: Edit and continue isn't working.
Since recently upgrading to VS 2022, I cannot edit when in debug/break without being prompted:
Edits were made which cannot be compiled. Changes won't be applied until the compile errors are fixed.
Refer to the Error List Window for further details.
Click Edit to make changes to the code.
Click Stop to stop the application.
This is a different prompt from what I get when I don't have the "Enable Edit and Continue and Hot Reload" option checked.
It isn't a matter of uncompilable code.
For me, I have .NET solution with many VB .NET and C# projects. Edit and Continue works on VS 2017 and VS2019 and fails on VS2022. I get the same message box as KippWoodard-3753 reported and every time I need to restart debugging. Even for small changed in WPF UIs. It's painful and slow as the build takes less than a minute but startup of my application is slower.
Sign in to comment
Sort by: Most helpful
Hi @Kipp Woodard ,
Welcome to Microsoft Q&A!
What kind of project are you debugging? Have you tried to create a new project to verify if the situation appears in specific project?
Please close all instances of Visual Studio and delete the .vs folder in the project folder. Then, clean the solution to try again.
If it persists, please share us the error message in the Error List window.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I am working on a WinForms/C# solution with 30 projects.
I closed VS, deleted the .vs folder in the solution folder, cleaned the solution, but I still can't edit in debug (All I've done is comment out a line). When I do I get this message.
Can you try clicking on the “Edit” and check if there is a message “Updating an active statement requires restarting the application”?
Then, restart your application, does it work?
When I click edit there is no such message (as a prompt or in the output window). Restarting the application always works.
I found the similar issue in Developer Community:
It is being investigated. You can add your comment to track the process. If there is any update, I will also add it here.
Sign in to comment
I tried all of the suggestions I found on the web such as 1) cleaning solution, 2) deleting .vs folder 3) disabling native JIT
I was not able to get Edit and Continue working until I did this:
Exe Project Properties -> Debug -> General -> Open Debug Launch Profiles -> uncheck "Enable Native Code Debugging". I believe this option used to be under Debug options.
This setting is stored in launchSettings.json: "nativeDebugging": false
For me setting these 2 environment variables: COR_ENABLE_PROFILING and CORECLR_ENABLE_PROFILING to 0 did the trick.