Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: runtime/observatory/lib/src/elements/debugger.dart

Issue 1699153002: Add step OverAwait to service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/debugger.dart
diff --git a/runtime/observatory/lib/src/elements/debugger.dart b/runtime/observatory/lib/src/elements/debugger.dart
index 3692d6a50c1c3cd1c85729be4d61f154c3ec3bac..3bf25b567eea41e1d2e11dab34f09e09f6f5bcd8 100644
--- a/runtime/observatory/lib/src/elements/debugger.dart
+++ b/runtime/observatory/lib/src/elements/debugger.dart
@@ -1810,7 +1810,7 @@ class ObservatoryDebugger extends Debugger {
Future smartNext() async {
if (isolatePaused()) {
var event = isolate.pauseEvent;
- if (event.atAsyncJump) {
+ if (event.atAsyncSuspension) {
return asyncNext();
} else {
return syncNext();
@@ -1823,11 +1823,10 @@ class ObservatoryDebugger extends Debugger {
Future asyncNext() async {
if (isolatePaused()) {
var event = isolate.pauseEvent;
- if (event.asyncContinuation == null) {
+ if (!event.atAsyncSuspension) {
console.print("No async continuation at this location");
} else {
- List<Future> asyncStepFutures = await isolate.asyncStepOver();
- return asyncStepFutures[Isolate.kFirstResume];
+ return isolate.stepOverAsyncSuspension();
}
} else {
console.print('The program is already running');
« no previous file with comments | « no previous file | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698