Visual Studio 2019 lets me edit C# source code files whilst the application is running/being debugged and not paused. This leads to errors when the application is paused and I attempt to start it again.
How can I stop visual studio from letting me edit files whilst the application is in debug mode and not paused?
I did not know it was even possible to enable such a thing.
Update: VS2019 is now crashing to desktop when I debug. I see the following error in windows event logs which references edit & continue. How do I resolve this?
> "Application: devenv.exe Framework Version: v4.0.30319 Description:
> The process was terminated due to an unhandled exception. Exception
> Info: System.NullReferenceException at
> Microsoft.VisualStudio.LanguageServices.EditAndContinue.VisualStudioDebugStateChangeListener+DebuggerService.Microsoft.VisualStudio.Debugger.ComponentInterfaces.IDkmModuleInstanceLoadNotification.OnModuleInstanceLoad(Microsoft.VisualStudio.Debugger.DkmModuleInstance,
> Microsoft.VisualStudio.Debugger.DkmWorkList,
> Microsoft.VisualStudio.Debugger.DkmEventDescriptorS) at
> Microsoft.VisualStudio.Debugger.EntryPoint.IDkmModuleInstanceLoadNotification_OnModuleInstanceLoad(IntPtr,
> IntPtr, IntPtr, IntPtr)