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

Side by Side Diff: runtime/observatory/lib/src/elements/debugger.dart

Issue 1266943005: Fix http requests and the crash dump RPC (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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 '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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698