| OLD | NEW |
| 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 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
| 10 import 'package:observatory/cli.dart'; | 10 import 'package:observatory/cli.dart'; |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 class AsyncNextCommand extends DebuggerCommand { | 352 class AsyncNextCommand extends DebuggerCommand { |
| 353 AsyncNextCommand(Debugger debugger) : super(debugger, 'anext', []) { | 353 AsyncNextCommand(Debugger debugger) : super(debugger, 'anext', []) { |
| 354 } | 354 } |
| 355 | 355 |
| 356 Future run(List<String> args) async { | 356 Future run(List<String> args) async { |
| 357 if (debugger.isolatePaused()) { | 357 if (debugger.isolatePaused()) { |
| 358 var event = debugger.isolate.pauseEvent; | 358 var event = debugger.isolate.pauseEvent; |
| 359 if (event.asyncContinuation == null) { | 359 if (event.asyncContinuation == null) { |
| 360 debugger.console.print("No async continuation at this location"); | 360 debugger.console.print("No async continuation at this location"); |
| 361 return; | 361 } else { |
| 362 return debugger.isolate.asyncStepOver()[Isolate.kFirstResume]; |
| 362 } | 363 } |
| 363 return debugger.isolate.asyncStepOver()[Isolate.kFirstResume]; | |
| 364 } else { | 364 } else { |
| 365 debugger.console.print('The program is already running'); | 365 debugger.console.print('The program is already running'); |
| 366 } | 366 } |
| 367 } | 367 } |
| 368 | 368 |
| 369 String helpShort = | 369 String helpShort = |
| 370 'Step over await or yield'; | 370 'Step over await or yield'; |
| 371 | 371 |
| 372 String helpLong = | 372 String helpLong = |
| 373 'Continue running the isolate until control returns to the current ' | 373 'Continue running the isolate until control returns to the current ' |
| (...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1882 } | 1882 } |
| 1883 }); | 1883 }); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 void focus() { | 1886 void focus() { |
| 1887 $['textBox'].focus(); | 1887 $['textBox'].focus(); |
| 1888 } | 1888 } |
| 1889 | 1889 |
| 1890 DebuggerInputElement.created() : super.created(); | 1890 DebuggerInputElement.created() : super.created(); |
| 1891 } | 1891 } |
| 1892 | |
| OLD | NEW |