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.
4 answers
Sort by: Most helpful
-
-
AnnaXiu-MSFT 14,901 Reputation points
2022-04-06T07:08:55.237+00:00 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.
Sincerely,
Anna
*
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. -
Michael L 1 Reputation point
2022-05-05T14:29:57.487+00:00 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
-
David Klingenberg 1 Reputation point
2022-07-20T09:20:48.453+00:00 For me setting these 2 environment variables: COR_ENABLE_PROFILING and CORECLR_ENABLE_PROFILING to 0 did the trick.