Return value in Visual Studio's Autos window
- by Dave
When I used to develop in C++, I remember that Visual Studio had an entry in its Autos window whenever returning from a function call. This entry would tell me what value was returned from that function.
One might argue that if a function returns a value, then you should set a variable to that value, i.e.
int i = GetRandomInt();
But as a contrived example, suppose I wanted to do this:
CycleTushKicker( GetRandomInt());
Instead of stepping into CycleTushKicker to figure out how many lickings my kid gets, I'd just like to know the value as soon as I exit GetRandomInt.
Is there a way to get this when using C#?