Code Changes While Debugging Not Taking Effect (Visual Studio 2017)
In fact, to use that function, every time put the cursor back to the changed part and then step over the cursor, it will take effect.
So please try these suggestions:
Suggestion
1) make sure that these settings are checked under Tools
-->Options
-->Debugging
-->General

uncheck Require source files to exactly match the original version
under Tools
-->Options
-->Debugging
-->General
.
check Managed
and uncheck Native
under Tools
-->Options
-->Debugging
-->Just In Time
2) close VS Instance, delete .vs
hidden folder, bin
,obj
folder and then restart your project again.
3) If you port an existing project, you should specify EmbedInteropTypes
as false
.
Add it in xxxx.csproj
file.
<PropertyGroup>
<EmbedInteropTypes>false</EmbedInteropTypes>
</PropertyGroup>
4) disable any third party extensions under Extensions
-->Manage Extension
5) make sure that you use the Debug mode
If your project is created by an old VS version, try to create a new project in VS2017 and then migrate the content of the old project into the new project to test this. (Not sure if the project is created by an old VS version)
Note that in different versions of vs, they can be some different, and if it is an old project, it may have some problems with this function in VS2017.
Hope it could help you.