How do I discover the return value at the end of a function when debugging in VS2008?
问题 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? This is necessary if the return value is calculated such as: return (x.Func() > y.Func()); 回答1: It's a little low level, but if you switch to disassembly then you can single step through the instructions and see what the return value is being set to. It is