Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ad debugger safepoint before returning from a function/method that shows the return value #22232

Closed
DartBot opened this issue Feb 2, 2015 · 4 comments
Assignees
Labels
type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Feb 2, 2015

This issue was originally filed by @zoechi


What steps will clearly show the issue / need for enhancement?
1.

Try to debug code like
return f1(a).f2(b).f3(c).f4(d);

especially when fx() are similar one-line expression.

2.
3.

What is the current output?
Only the result of the entire expression can be examined but no way to see intermediate values.

What would you like to see instead?
A debugger safepoint just before the function/methods returns but where the return value is already available.
The return value should be show in the variables view.

What version of the product are you using? On what operating system?
Dart VM version: 1.9.0-edge.43350 (Sun Feb 1 23:45:32 2015) on "linux_x64"

Please provide any additional information below.

@DartBot
Copy link
Author

DartBot commented Feb 2, 2015

This comment was originally written by @zoechi


It should be possible to explicitly set a breakpoint for this, for example on the closing curly bracket of a function block.

@DartBot
Copy link
Author

DartBot commented Feb 2, 2015

This comment was originally written by @zoechi


Even harder when the function returns a future

Future<Foo> f() {
  return f1(a).f2(b).f3(c).f4(d);
}

where the debugger doesn't step to the .then() part of the calling code but to some code in zone.dart.

@clayberg
Copy link

clayberg commented Feb 2, 2015

Set owner to @devoncarew.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@DartBot
Copy link
Author

DartBot commented Aug 6, 2015

This issue has been moved to dart-archive/eclipse3#42.

@DartBot DartBot closed this as completed Aug 6, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants