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:io"); | 8 #import("dart:io"); |
9 #import("dart:json"); | 9 #import("dart:json"); |
| 10 #import("dart:math", prefix: "Math"); |
10 #import("dart:utf"); | 11 #import("dart:utf"); |
11 | 12 |
12 | 13 |
13 Map<int, Completer> outstandingCommands; | 14 Map<int, Completer> outstandingCommands; |
14 | 15 |
15 Socket vmSock; | 16 Socket vmSock; |
16 String vmData; | 17 String vmData; |
17 OutputStream vmStream; | 18 OutputStream vmStream; |
18 int seqNum = 0; | 19 int seqNum = 0; |
19 | 20 |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 }; | 451 }; |
451 vmInStream.onError = (err) { | 452 vmInStream.onError = (err) { |
452 print("Error in debug connection: $err"); | 453 print("Error in debug connection: $err"); |
453 quitShell(); | 454 quitShell(); |
454 }; | 455 }; |
455 vmInStream.onClosed = () { | 456 vmInStream.onClosed = () { |
456 print("VM debugger connection closed"); | 457 print("VM debugger connection closed"); |
457 quitShell(); | 458 quitShell(); |
458 }; | 459 }; |
459 } | 460 } |
OLD | NEW |