When debugging I get the following error:
Unable to step. The operation could not be completed. A retry should be performed
After clicking OK, the dialog returns:
The debugger cannot continue running the process. The operation could not be completed. A retry should be performed.
The solution is set to "Debug" and "Any CPU". After restarting the application I can step through the code but it takes 5-10 seconds to step on something that normally goes instant. However CPU, RAM and HDD is operating normally and not peaking. Has anyone else experienced this?
I had a same problem but I had a single class library project in a solution so I just rebuild the solution and then it worked.
In Visual Studio 2015, 2017 and 2019 you can do that:
Go to Tools -> Options -> Debugging -> General
Turn off
I've also ran into this issue before in Visual Studio 2015 Update 3 on Windows 7 SP1 (64-bit).
Try disabling the Visual Studio hosting process.
Project Properties > Debug > uncheck "Enable the Visual Studio hosting process"
Also, are you running out of memory?
Are you debugging an ASP.NET website?
Sources:
Are you debugging a Universal Windows App?
If so, a work-around could be to reinstall "Tools for Universal Windows Appps Development" as follows:
Source: - https://social.msdn.microsoft.com/Forums/vstudio/en-US/c9936d80-087d-4cad-93bf-ca4873889773/the-debugger-cannot-continue-running-the-process?forum=vsdebug
Solved it by completely uninstalling Visual Studio and ReSharper. I used this tool:
https://github.com/Microsoft/VisualStudioUninstaller
After re-install everything worked again.
In my case detaching from the process and attaching again solved the problem.