Bug 13368 - Show return values in debugger
Summary: Show return values in debugger
Status: NEW
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: 2016-12-02 22:52 UTC (History)
6 users (show)

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


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.