Whether your code is built in Release or Debug mode doesn't matter.The generated IL is very nearly the same. The Debug version will have an attribute that the JIT uses to set compilation defaults, that attribute is missing in your. The next thing that matters is exactly how you debug or run your application.
The setting that's important is Tools:
Suppress JIT optimization on module load. It is ticked by default.
Post a Comment