Skip to content

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

Open
@DanTup

Description

@DanTup

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)

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamvm-serviceThe VM Service Protocol, both the specification and its implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions