| 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 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 so Step over | 34 so Step over |
| 35 si Step into | 35 si Step into |
| 36 sbp [<file>] <line> Set breakpoint | 36 sbp [<file>] <line> Set breakpoint |
| 37 rbp <id> Remove breakpoint with given id | 37 rbp <id> Remove breakpoint with given id |
| 38 po <id> Print object info for given id | 38 po <id> Print object info for given id |
| 39 pl <id> <idx> [<len>] Print list element/slice | 39 pl <id> <idx> [<len>] Print list element/slice |
| 40 pc <id> Print class info for given id | 40 pc <id> Print class info for given id |
| 41 ll List loaded libraries | 41 ll List loaded libraries |
| 42 plib <id> Print library info for given library id | 42 plib <id> Print library info for given library id |
| 43 pg <id> Print all global variables visible within given library id | 43 pg <id> Print all global variables visible within given library id |
| 44 ls <libname> List loaded scripts in library | 44 ls <lib_id> List loaded scripts in library |
| 45 gs <lib_id> <script_url> Get source text of script in library | 45 gs <lib_id> <script_url> Get source text of script in library |
| 46 epi <none|all|unhandled> Set exception pause info | 46 epi <none|all|unhandled> Set exception pause info |
| 47 h Print help | 47 h Print help |
| 48 """); | 48 """); |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 void quitShell() { | 52 void quitShell() { |
| 53 vmStream.close(); | 53 vmStream.close(); |
| 54 vmSock.close(); | 54 vmSock.close(); |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 }; | 433 }; |
| 434 vmInStream.onError = (err) { | 434 vmInStream.onError = (err) { |
| 435 print("Error in debug connection: $err"); | 435 print("Error in debug connection: $err"); |
| 436 quitShell(); | 436 quitShell(); |
| 437 }; | 437 }; |
| 438 vmInStream.onClosed = () { | 438 vmInStream.onClosed = () { |
| 439 print("VM debugger connection closed"); | 439 print("VM debugger connection closed"); |
| 440 quitShell(); | 440 quitShell(); |
| 441 }; | 441 }; |
| 442 } | 442 } |
| OLD | NEW |