Is there an equivalent to $ exception for return values

In the Visual Studio viewport, you can put $exceptionand get information about the current exception, but is there an equivalent for the return value of the methods?

+3
source share
3 answers

In C # - and the answer is simply no. In VB.NET, you can search for a method name in the Locals window, and this should be so. For reference, see this blog post from JaredPar (from Microsoft) .

+4
source

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

$err - GetLastError() ( "$ err, hr" ).

0

Now you can.

$ReturnValuein Watches or Immediate windows. Also check out 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

0
source

Source: https://habr.com/ru/post/1788242/


All Articles