Recently when I've been debugging my application, I've been able to write code into C# files when the application isn't in the broken state. I've tried totally disabling the "Edit and Continue" setting in the visual studio options but that doesn't seem to be working.
What I'm expecting to happen is when I'm debugging and I type into a C# file, I want that popup that says "Changes are not allowed while the application is running" prompting me to put a breakpoint in my code to apply changes during runtime while the application is in the paused state. I'm not sure if this was a change that was introduced into the latest 2019 build or if there's something wrong with my options. Any ideas on this one would be great.
For reference, this is the popup that I want:
and these are my settings:
and proof of the functionality that I don't want
To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.
Here are the steps. Go down to the Debugging > General option on the left side of the menu. Find and uncheck the Enable Javascript debugging for ASP.NET(Chrome and IE). Now, no new Chrome instance will be launched every time you run or debug your web project.
According to the VS Team this works as designed:
This behavior you described is expected for Visual Studio 16.3. We went through several changes on Edit and Continue and now allow editing the code while the application is running. Any errors or warnings regarding your changes will show up at the Error List Window. In order to apply these changes, you simply have to be on a break state (e.g. break all or stop on a breakpoint) and continue from there.
Source: https://developercommunity.visualstudio.com/content/problem/768979/able-to-type-while-debugging.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With