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

Side by Side Diff: tools/ddbg.dart

Issue 1443723004: Fix ambigous typos. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix long line Created 5 years, 1 month 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Simple interactive debugger shell that connects to the Dart VM's debugger 5 // Simple interactive debugger shell that connects to the Dart VM's debugger
6 // connection port. 6 // connection port.
7 7
8 import "dart:convert"; 8 import "dart:convert";
9 import "dart:io"; 9 import "dart:io";
10 import "dart:async"; 10 import "dart:async";
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 var matches = matchCommand(command, true); 767 var matches = matchCommand(command, true);
768 if (matches.length == 0) { 768 if (matches.length == 0) {
769 huh(); 769 huh();
770 cmdo.show(); 770 cmdo.show();
771 } else if (matches.length == 1) { 771 } else if (matches.length == 1) {
772 matches[0].run(args).then((_) { 772 matches[0].run(args).then((_) {
773 cmdo.show(); 773 cmdo.show();
774 }); 774 });
775 } else { 775 } else {
776 var matchNames = matches.map((handler) => handler.name); 776 var matchNames = matches.map((handler) => handler.name);
777 print("Ambigous command '$command' : ${matchNames.toList()}"); 777 print("Ambiguous command '$command' : ${matchNames.toList()}");
778 cmdo.show(); 778 cmdo.show();
779 } 779 }
780 } 780 }
781 } 781 }
782 782
783 783
784 void processError(error, trace) { 784 void processError(error, trace) {
785 cmdo.hide(); 785 cmdo.hide();
786 print("\nInternal error:\n$error\n$trace"); 786 print("\nInternal error:\n$error\n$trace");
787 cmdo.show(); 787 cmdo.show();
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 handleUncaughtError: debuggerError)); 1487 handleUncaughtError: debuggerError));
1488 1488
1489 zone.run(() { 1489 zone.run(() {
1490 parseArgs(args); 1490 parseArgs(args);
1491 cmdo = new Commando(completer: debuggerCommandCompleter); 1491 cmdo = new Commando(completer: debuggerCommandCompleter);
1492 cmdSubscription = cmdo.commands.listen(processCommand, 1492 cmdSubscription = cmdo.commands.listen(processCommand,
1493 onError: processError, 1493 onError: processError,
1494 onDone: processDone); 1494 onDone: processDone);
1495 }); 1495 });
1496 } 1496 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.dart ('k') | tools/ddbg_service/lib/debugger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698