title: How do I debug a single line function in Visual Studio?
body: <p>Is there a way in Visual Studio to debug a function which is only one line?</p>
  
  <p>Something like:</p>
  
  <pre><code>int foo(int a) { return a + 1; }
  </code></pre>
  
  <p>It seems when VS enters the function, none of the data has been properly initialized, and upon inspecting the variable 'a', I get garbage data. The data is usually initialized once I step to the next line, but since this is a one line function it never seems to do that, which is quite annoying (as I will need to recompile everything just to inspect the value of a).</p>