Saturday, February 4, 2012

debug and release mode


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:

  • Options, 
  • Debugging, 
  • General

Suppress JIT optimization on module load. It is ticked by default.

No comments: