Bug 13368 - Show return values in debugger
Summary: Show return values in debugger
Status: CONFIRMED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2013-07-21 10:54 UTC by Mikayla Hutchinson [MSFT]
Modified: 2018-01-18 22:29 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 13368 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Mikayla Hutchinson [MSFT] 2013-07-21 10:54:51 UTC
It would be nice to show return values for method calls in the debugger locals pad, like VS2013 does: http://blogs.msdn.com/b/dotnet/archive/2013/06/26/announcing-the-net-framework-4-5-1-preview.aspx

This would mean the user wouldn't have to create unnecessary temp locals in their code just for the debugger.
Comment 1 Jeffrey Stedfast 2013-07-23 13:51:20 UTC
we'll need runtime support for this
Comment 2 Zoltan Varga 2013-07-27 23:03:41 UTC
What sdb functionality is needed to be able to implement this ?
Comment 3 Christophe Oosterlynck 2015-10-14 03:26:07 UTC
I know this is an old report. But I would love to see this as well.

It is frustrating to debug deep in your code and having to abort to create a temporary variable to fully understand what is going on.
Comment 4 Lluis Sanchez 2015-10-19 13:07:34 UTC
Pinging David.
Comment 5 David Karlaš 2015-10-19 17:17:34 UTC
There are 2 kinds of return values variables "direct return values"(this is what method returns during stepping command) and "the values of embedded methods"(this is mostly possible just in VisualBasic which has return value variable).

We will support only "direct return values" this means when we finish stepping out of current method or when we step over some method(s) we display return value.

Sdb can implement this 2 ways:
1. Add additional variables to local variables&parameters.
2. Via events by sending method & value when method is exited during stepping.

We should probably discuss into more details which approach is better.
Comment 8 Zoltan Varga 2016-12-02 22:52:21 UTC
No, its not really a bug, more like a feature request, it could be a lot of work to implement.