On behalf of @SamuelEnglard:
Is there a way to have the Core JIT not optimize code? Debugging inside CoreFX/Mscorlib is hard with optimizations!
You can set the environment variable
COMPlus_JITMinOpts=1
That will turn off all JIT optimizations
Calling this answered and closing. Feel free to re-open if the answer isn't sufficient.
Thanks @briansull!
this worked for me: Check the checkbox: Tools -> Options -> Debugging -> General -> Suppress JIT optimization on module load.
More info here: https://blogs.msdn.microsoft.com/vancem/2017/12/20/update-debugging-through-the-net-core-framework-v2-0-3-windows/
Most helpful comment
You can set the environment variable
COMPlus_JITMinOpts=1
That will turn off all JIT optimizations