<p>Using C# in Visual Studio 2008 and stepping through a function in the debugger I get to the end of a function and am on the final curly brace } and about to return. Is there a way to find out what value the function is about to return?</p>

<p>This is necessary if the return value is calculated such as:</p>

<pre><code>return (x.Func() &gt; y.Func());
</code></pre>

You can put
```
```
(x.Func() > y.Func())
```
```
in a watch window to evaluate it, and see the result.  Unless the statement is
```
```
return ValueChangesAfterEveryCall();
```
```
you should be fine.