Is there a way in Visual Studio to debug a function which is only one line?
Something like:
int foo(int a) { return a + 1; }
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).