title: How to debug a variable that is optimized away in Release build
body: <p>I am using VS2010. My debug version works fine however my Release version kept on crashing. So In the release version mode I right clicked the project chose Debug and then chose start new instance. At this point I saw that an array that I had declared as such</p>
  
  <pre><code>int ma[4]= { 1,2,8,4};
  </code></pre>
  
  <p>Never gets initialized. Any suggestions on what might be going on. </p>