Comments (3)
@bkonyi is there an existing way to get at the return value for a function through the VM Service?
In JS, when you step over a return, there's an extra stop location at the return which includes the return value in the variables list:
js.mp4
In Dart, it seems we have a similar extra stop location (it jumps to before the return
keyword):
dart.mp4
However, I can't see anything in the VM traffic that indicates the return value so I'm not sure if the reason for this extra stop point was for this reason, or something else.
from dart-code.
I'm not aware of any way to do that, otherwise it would have already been available alongside the list of other local variables.
We probably have a step location there since we're about to perform the return
after evaluating a + b
. If we didn't have that location, we'd simply skip past return
in a function that returns void
.
This does seem like nice behavior, but we'd need to make service changes. It's probably worth filing an issue for this in the SDK, but I don't think it'll be high priority.
from dart-code.
@bkonyi thanks, I've opened dart-lang/sdk#55704
from dart-code.
Related Issues (20)
- Server diagnostics can reappear for deleted/moved files if analyzer plugins generate new diagnostics (even if empty) HOT 7
- Macro not detected when importing from a package HOT 2
- The SDK configured in dart.flutterSdkPath is not a valid SDK folder. HOT 1
- Widget Inspector breaks when its tab is undocked or re-docked. HOT 1
- Improved ASDF Support HOT 8
- having issues in flutter launching HOT 1
- Can't install Flutter SDK - Stuck on "Checking for git" HOT 7
- have searched on the goolge but can't find niof fix about Launch.json. I put "program": "lib/main.dart" but it still doesn't work. I would like to be able to help you how to fix "Your launch config refers to a program that does not exist. If you have problems launching, check the "program" field in your ".vscode/launch.json" file ." HOT 3
- Highligh issue with another textmate grammar HOT 1
- Error: Dart library 'dart:ui' is not available on this platform HOT 11
- Add `Import library with prefix` option HOT 3
- When attaching to Flutter web fails, the "Attaching..." notification stays on screen and the error message is not shown
- Dart extension doesn't start analyzer HOT 2
- `Restart Analysis Server` exits `DevTools` on Flutter projects HOT 1
- Don't prompt for Dart SDK updates when Dart SDK is found from a symlink in a Flutter SDK HOT 11
- Duplicate fields in debugger view HOT 13
- Breakpoints not triggering on web build HOT 9
- Missed snackbar.dart file path from fluent_ui.dart HOT 2
- Add an option to auto open DevTools in browser on start debugging HOT 1
- Debug breakpoints not triggering on iOS devices HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-code.