| OLD | NEW |
| 1 # Dart VM Service Protocol 3.3 | 1 # Dart VM Service Protocol 3.4 |
| 2 | 2 |
| 3 > Please post feedback to the [observatory-discuss group][discuss-list] | 3 > Please post feedback to the [observatory-discuss group][discuss-list] |
| 4 | 4 |
| 5 This document describes of _version 3.3_ of the Dart VM Service Protocol. This | 5 This document describes of _version 3.4_ of the Dart VM Service Protocol. This |
| 6 protocol is used to communicate with a running Dart Virtual Machine. | 6 protocol is used to communicate with a running Dart Virtual Machine. |
| 7 | 7 |
| 8 To use the Service Protocol, start the VM with the *--observe* flag. | 8 To use the Service Protocol, start the VM with the *--observe* flag. |
| 9 The VM will start a webserver which services protocol requests via WebSocket. | 9 The VM will start a webserver which services protocol requests via WebSocket. |
| 10 It is possible to make HTTP (non-WebSocket) requests, | 10 It is possible to make HTTP (non-WebSocket) requests, |
| 11 but this does not allow access to VM _events_ and is not documented | 11 but this does not allow access to VM _events_ and is not documented |
| 12 here. | 12 here. |
| 13 | 13 |
| 14 The Service Protocol uses [JSON-RPC 2.0][]. | 14 The Service Protocol uses [JSON-RPC 2.0][]. |
| 15 | 15 |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 505 |
| 506 If the expression is evaluated successfully, an [@Instance](#instance) | 506 If the expression is evaluated successfully, an [@Instance](#instance) |
| 507 reference will be returned. | 507 reference will be returned. |
| 508 | 508 |
| 509 ### getFlagList | 509 ### getFlagList |
| 510 | 510 |
| 511 ``` | 511 ``` |
| 512 FlagList getFlagList() | 512 FlagList getFlagList() |
| 513 ``` | 513 ``` |
| 514 | 514 |
| 515 The _getFlagList RPC returns a list of all command line flags in the | 515 The _getFlagList_ RPC returns a list of all command line flags in the |
| 516 VM along with their current values. | 516 VM along with their current values. |
| 517 | 517 |
| 518 See [FlagList](#flaglist). | 518 See [FlagList](#flaglist). |
| 519 | 519 |
| 520 ### getIsolate | 520 ### getIsolate |
| 521 | 521 |
| 522 ``` | 522 ``` |
| 523 Isolate|Sentinel getIsolate(string isolateId) | 523 Isolate|Sentinel getIsolate(string isolateId) |
| 524 ``` | 524 ``` |
| 525 | 525 |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2513 version | comments | 2513 version | comments |
| 2514 ------- | -------- | 2514 ------- | -------- |
| 2515 1.0 | initial revision | 2515 1.0 | initial revision |
| 2516 2.0 | Describe protocol version 2.0. | 2516 2.0 | Describe protocol version 2.0. |
| 2517 3.0 | Describe protocol version 3.0. Added UnresolvedSourceLocation. Added Sen
tinel return to getIsolate. Add AddedBreakpointWithScriptUri. Removed Isolate.
entry. The type of VM.pid was changed from string to int. Added VMUpdate events
. Add offset and count parameters to getObject() and offset and count fields to
Instance. Added ServiceExtensionAdded event. | 2517 3.0 | Describe protocol version 3.0. Added UnresolvedSourceLocation. Added Sen
tinel return to getIsolate. Add AddedBreakpointWithScriptUri. Removed Isolate.
entry. The type of VM.pid was changed from string to int. Added VMUpdate events
. Add offset and count parameters to getObject() and offset and count fields to
Instance. Added ServiceExtensionAdded event. |
| 2518 3.1 | Add the getSourceReport RPC. The getObject RPC now accepts offset and cou
nt for string objects. String objects now contain length, offset, and count pro
perties. | 2518 3.1 | Add the getSourceReport RPC. The getObject RPC now accepts offset and cou
nt for string objects. String objects now contain length, offset, and count pro
perties. |
| 2519 3.2 | Isolate objects now include the runnable bit and many debugger related RPC
s will return an error if executed on an isolate before it is runnable. | 2519 3.2 | Isolate objects now include the runnable bit and many debugger related RPC
s will return an error if executed on an isolate before it is runnable. |
| 2520 3.3 | Pause event now indicates if the isolate is paused at an await, yield, or
yield* suspension point via the 'atAsyncSuspension' field. Resume command now su
pports the step parameter 'OverAsyncSuspension'. A Breakpoint added syntheticall
y by an 'OverAsyncSuspension' resume command identifies itself as such via the '
isSyntheticAsyncContinuation' field. | 2520 3.3 | Pause event now indicates if the isolate is paused at an await, yield, or
yield* suspension point via the 'atAsyncSuspension' field. Resume command now su
pports the step parameter 'OverAsyncSuspension'. A Breakpoint added syntheticall
y by an 'OverAsyncSuspension' resume command identifies itself as such via the '
isSyntheticAsyncContinuation' field. |
| 2521 3.4 | Add the superType and mixin fields to Class. Added new pause event 'None'. | 2521 3.4 | Add the superType and mixin fields to Class. Added new pause event 'None'. |
| 2522 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato
ry-discuss | 2522 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato
ry-discuss |
| OLD | NEW |