简体   繁体   中英

Is there an equivalent of $exception for return values

在Visual Studio监视窗口中,您可以放置$exception并获取当前异常的详细信息,但是方法返回值是否等效?

In C# - and the answer is simply No. In VB.NET though, you can look for the name of the method in the Locals window, and that should be it. For reference, see this blog post by JaredPar (from Microsoft) .

You can now.

$ReturnValue in the Watches or Immediate windows. Also, check the Autos window.

http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx

$eax will usually show the return for most basic types (for C++ anyway - I don't know if this applies to C#).

You may also find $err useful - it shows the current value of GetLastError() ("$err,hr" will try to show a text representation of the error value).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM