Possible Duplicate:
Can I find out the return value before returning while debugging in Visual Studio
VS get returned value in C# code?
In Visual Studio 2010, is there a way to check the value that a method is about to return? I often find myself changing code like:
return myComplexOp(someOtherComplexOp(foo));
to
var ret = myComplexOp(someOtherComplexOp(foo));
return ret;
just to make it easier to debug? Is there an easier way?