-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamIssue has been triaged by sub teamtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Consider the following code:
var aaa = 1;
f() {
var aaa = 2;
debugger();
}If I stop at debugger() and hover over aaa on the first line, I will see a value of 2 because we always just evaluate the expression in the current frame. It would be nice if we could provide a location and ask for an evaluation at a given location, which automatically handles selecting the right frame based on the hover location.
It would even be nice if we didn't need to provide an expression at all, but just a location, since VS Code often expands to something that is not valid (an API for "evaluate whatever expression is at [location]"), which causes issues for evaluating expressions in parens (see Dart-Code/Dart-Code#5362).
There's some more discussion about this in Dart-Code/Dart-Code#5362
Metadata
Metadata
Assignees
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamIssue has been triaged by sub teamtype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug