Return value in Visual Studio's Autos window

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2011-01-13T15:51:08Z Indexed on 2011/01/13 15:53 UTC
Read the original article Hit count: 168

Filed under:
|
|

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#?

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2010