title: pragma optimize("", off) doesn't disable optimizations fully
body: <p>I am looking at the documentation here: <a href="https://msdn.microsoft.com/en-us/library/chh3fb0k.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/chh3fb0k.aspx</a></p>
  
  <p>I also searched existing SO questions. The existing questions discuss how to turn off optimizations for one file, but not what to do in case all optimizations are not off. </p>
  
  <p>Currently, when debugging in <code>release</code>, I need <code>#pragma optimize("", off)</code> outside of functions in a particular source file to disable optimizations. Using <code>debug</code> configuration for the whole project is not an option. </p>
  
  <p>However, this is not <em>completely</em> disabling optimizations for that file i.e. I still get out of order instructions and cannot put breakpoints in certain locations. Is this expected or am I really not turning off <em>all</em> optimizations for the source file? In the latter case, how <em>do</em> I turn off all optimizations for a file. In the former case, what are my options?</p>