调试返回值 [英] Debug return value
问题描述
现在我在Visual Studio 2010中的 C#中缺少该功能。
哪里可以看到返回值,还是有原因不显示?
Edit1:
示例:
string GetFullName ()
{
return GetFirstName()++ GetLastName();
}
从行开始的行(调试器)返回到下一行我想在调试变量窗口中看到全名。
这是在Visual Studio中添加的2013年:
返回值显示在Autos Windows(Debug-> Windows-> Autos)中,您还可以使用伪变量$ Watch和/或Immediate窗口中的ReturnValue,以获取最后一个函数的返回值。
I can remember that I could see the return value of a method when I debug a C++ code in Visual Studio 6.0.
Now I am missing that feature at C# in Visual Studio 2010.
Where can I see the return value or is there a cause for not showing it?
Edit1: An example:
string GetFullName()
{
return GetFirstName() + " " + GetLastName();
}
When I step (debugger) from row beginning with return to next line I would like to see the full name in a debug variable window.
This was added in Visual Studio 2013:
The return value(s) get displayed in the "Autos Windows" (Debug->Windows->Autos) and you can also use the pseudo variable "$ReturnValue" in the Watch and/or Immediate window to fetch the last function’s return value.
这篇关于调试返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!