Why when I used the Visual Studio Community 2019 C# to run the code,The Edit and Continue feature is currently unavailable due to an internal error. Display Stack Trace

文浩 唐 20 Reputation points
2023-02-09T17:30:11.6566667+00:00

I don't understand why this is happening. I tried to delete and reinstall,but it didn't work. When I click 'Stack trace', It shows me the data. And there's nothing wrong with my computer. Please help me.QQ图片20230210012552

QQ图片20230210012549

Looking forward to your reply.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,962 questions
{count} votes

Accepted answer
  1. Ravi Singh Patel 80 Reputation points
    2023-02-09T18:56:44.26+00:00

    The "Edit and Continue" feature in Visual Studio allows you to make changes to your code while your application is running, without having to stop and restart it. If you're encountering an error that says "The Edit and Continue feature is currently unavailable due to an internal error," there could be a few different reasons for this:

    1. Debugging Configuration: Ensure that the debugging configuration is set to "Debug" and not "Release." The Edit and Continue feature is not available in Release mode.
    2. Build Configuration: Ensure that the project is built for x86 or x64 architecture, as the Edit and Continue feature does not support Any CPU.
    3. Code Compatibility: Ensure that the code changes you are trying to make are compatible with the Edit and Continue feature. For example, changes to certain types of code constructs, such as loop structures or exception handling, may not be supported.
    4. Visual Studio Version: If you're using an older version of Visual Studio, the Edit and Continue feature may not be available. Upgrade to the latest version of Visual Studio to ensure you have the latest features and bug fixes.
    5. Broken Debugger: If the debugger is not functioning properly, it can cause the Edit and Continue feature to fail. Try resetting the Visual Studio settings or repairing the installation to resolve this issue.

    If you have tried all of these steps and are still encountering the error, you can try looking at the Stack Trace information to see if it provides any additional insights into the cause of the problem.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.