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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library debugger_page_element; 5 library debugger_page_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:math'; 9 import 'dart:math';
10 import 'observatory_element.dart'; 10 import 'observatory_element.dart';
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 await Future.wait(pending); 1803 await Future.wait(pending);
1804 } 1804 }
1805 } 1805 }
1806 return new Future.value(null); 1806 return new Future.value(null);
1807 } 1807 }
1808 1808
1809 1809
1810 Future smartNext() async { 1810 Future smartNext() async {
1811 if (isolatePaused()) { 1811 if (isolatePaused()) {
1812 var event = isolate.pauseEvent; 1812 var event = isolate.pauseEvent;
1813 if (event.atAsyncJump) { 1813 if (event.atAsyncSuspension) {
1814 return asyncNext(); 1814 return asyncNext();
1815 } else { 1815 } else {
1816 return syncNext(); 1816 return syncNext();
1817 } 1817 }
1818 } else { 1818 } else {
1819 console.print('The program is already running'); 1819 console.print('The program is already running');
1820 } 1820 }
1821 } 1821 }
1822 1822
1823 Future asyncNext() async { 1823 Future asyncNext() async {
1824 if (isolatePaused()) { 1824 if (isolatePaused()) {
1825 var event = isolate.pauseEvent; 1825 var event = isolate.pauseEvent;
1826 if (event.asyncContinuation == null) { 1826 if (!event.atAsyncSuspension) {
1827 console.print("No async continuation at this location"); 1827 console.print("No async continuation at this location");
1828 } else { 1828 } else {
1829 List<Future> asyncStepFutures = await isolate.asyncStepOver(); 1829 return isolate.stepOverAsyncSuspension();
1830 return asyncStepFutures[Isolate.kFirstResume];
1831 } 1830 }
1832 } else { 1831 } else {
1833 console.print('The program is already running'); 1832 console.print('The program is already running');
1834 } 1833 }
1835 } 1834 }
1836 1835
1837 Future syncNext() async { 1836 Future syncNext() async {
1838 if (isolatePaused()) { 1837 if (isolatePaused()) {
1839 var event = isolate.pauseEvent; 1838 var event = isolate.pauseEvent;
1840 if (event.kind == ServiceEvent.kPauseStart) { 1839 if (event.kind == ServiceEvent.kPauseStart) {
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 } 2653 }
2655 }); 2654 });
2656 } 2655 }
2657 2656
2658 void focus() { 2657 void focus() {
2659 $['textBox'].focus(); 2658 $['textBox'].focus();
2660 } 2659 }
2661 2660
2662 DebuggerInputElement.created() : super.created(); 2661 DebuggerInputElement.created() : super.created();
2663 } 2662 }
OLDNEW
« 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