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

Add the ability to access the return value of a function through the VM Service when execution is paused on return #55704

Open
DanTup opened this issue May 13, 2024 · 1 comment
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team vm-service The VM Service Protocol, both the specification and its implementation

Comments

@DanTup
Copy link
Collaborator

DanTup commented May 13, 2024

In JS in VS Code, when you step over a return, there's an final stop location at the return which includes the return value in the variables list:

js.mp4

In Dart, we have a similar stop location (it jumps to before the return keyword):

dart.mp4

However the value being returned is not available through the VM Service. It would be useful for debugging to allow this value to be inspected without having to introduce an additional local variable.

(Originally filed at Dart-Code/Dart-Code#5104)

@lrhn lrhn added the area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. label May 13, 2024
@rmacnak-google rmacnak-google added the vm-service The VM Service Protocol, both the specification and its implementation label May 15, 2024
@rmacnak-google
Copy link
Contributor

This a specific case of the more general issue that the evaluation stack isn't reported as part of the frame state along with the named local variables.

@aam aam added P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team vm-service The VM Service Protocol, both the specification and its implementation
Projects
None yet
Development

No branches or pull requests

5 participants