| OLD | NEW |
| 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:json" as json; | 10 import "dart:json" as json; |
| 11 import "dart:utf"; | |
| 12 import "dart:async"; | 11 import "dart:async"; |
| 13 | 12 |
| 14 | 13 |
| 15 Map<int, Completer> outstandingCommands; | 14 Map<int, Completer> outstandingCommands; |
| 16 | 15 |
| 17 Socket vmSock; | 16 Socket vmSock; |
| 18 String vmData; | 17 String vmData; |
| 19 var stdinSubscription; | 18 var stdinSubscription; |
| 20 var vmSubscription; | 19 var vmSubscription; |
| 21 int seqNum = 0; | 20 int seqNum = 0; |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 process.stdin.close(); | 633 process.stdin.close(); |
| 635 process.exitCode.then((int exitCode) { | 634 process.exitCode.then((int exitCode) { |
| 636 print('${arguments.join(" ")} exited with $exitCode'); | 635 print('${arguments.join(" ")} exited with $exitCode'); |
| 637 }); | 636 }); |
| 638 debuggerMain(); | 637 debuggerMain(); |
| 639 }); | 638 }); |
| 640 } else { | 639 } else { |
| 641 debuggerMain(); | 640 debuggerMain(); |
| 642 } | 641 } |
| 643 } | 642 } |
| OLD | NEW |