Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

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

Open
DartBot opened this issue Aug 6, 2015 · 3 comments

Comments

@DartBot
Copy link

DartBot commented Aug 6, 2015

Originally opened as dart-lang/sdk#22232

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 Aug 6, 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 Aug 6, 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.

@DartBot
Copy link
Author

DartBot commented Aug 6, 2015

Comment by clayberg


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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant