| OLD | NEW |
| 1 # Dart VM Service Protocol 3.3 | 1 # Dart VM Service Protocol 3.3 |
| 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.3_ 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, |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 ``` | 914 ``` |
| 915 class Breakpoint extends Object { | 915 class Breakpoint extends Object { |
| 916 // A number identifying this breakpoint to the user. | 916 // A number identifying this breakpoint to the user. |
| 917 int breakpointNumber; | 917 int breakpointNumber; |
| 918 | 918 |
| 919 // Has this breakpoint been assigned to a specific program location? | 919 // Has this breakpoint been assigned to a specific program location? |
| 920 bool resolved; | 920 bool resolved; |
| 921 | 921 |
| 922 // Is this a breakpoint that was added synthetically as part of a step | 922 // Is this a breakpoint that was added synthetically as part of a step |
| 923 // OverAsyncSuspension resume command? | 923 // OverAsyncSuspension resume command? |
| 924 bool isSyntheticAsyncContinuation [optional]. | 924 bool isSyntheticAsyncContinuation [optional]; |
| 925 | 925 |
| 926 // SourceLocation when breakpoint is resolved, UnresolvedSourceLocation | 926 // SourceLocation when breakpoint is resolved, UnresolvedSourceLocation |
| 927 // when a breakpoint is not resolved. | 927 // when a breakpoint is not resolved. |
| 928 SourceLocation|UnresolvedSourceLocation location; | 928 SourceLocation|UnresolvedSourceLocation location; |
| 929 } | 929 } |
| 930 ``` | 930 ``` |
| 931 | 931 |
| 932 A _Breakpoint_ describes a debugger breakpoint. | 932 A _Breakpoint_ describes a debugger breakpoint. |
| 933 | 933 |
| 934 A breakpoint is _resolved_ when it has been assigned to a specific | 934 A breakpoint is _resolved_ when it has been assigned to a specific |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 // The extension event data. | 1211 // The extension event data. |
| 1212 // | 1212 // |
| 1213 // This is provided for the Extension event. | 1213 // This is provided for the Extension event. |
| 1214 ExtensionData extensionData [optional]; | 1214 ExtensionData extensionData [optional]; |
| 1215 | 1215 |
| 1216 // Is the isolate paused at an await, yield, or yield* statement? | 1216 // Is the isolate paused at an await, yield, or yield* statement? |
| 1217 // | 1217 // |
| 1218 // This is provided for the event kinds: | 1218 // This is provided for the event kinds: |
| 1219 // PauseBreakpoint | 1219 // PauseBreakpoint |
| 1220 // PauseInterrupted | 1220 // PauseInterrupted |
| 1221 bool atAsyncSuspension [optional] | 1221 bool atAsyncSuspension [optional]; |
| 1222 } | 1222 } |
| 1223 ``` | 1223 ``` |
| 1224 | 1224 |
| 1225 An _Event_ is an asynchronous notification from the VM. It is delivered | 1225 An _Event_ is an asynchronous notification from the VM. It is delivered |
| 1226 only when the client has subscribed to an event stream using the | 1226 only when the client has subscribed to an event stream using the |
| 1227 [streamListen](#streamListen) RPC. | 1227 [streamListen](#streamListen) RPC. |
| 1228 | 1228 |
| 1229 For more information, see [events](#events). | 1229 For more information, see [events](#events). |
| 1230 | 1230 |
| 1231 ### EventKind | 1231 ### EventKind |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 version | comments | 2484 version | comments |
| 2485 ------- | -------- | 2485 ------- | -------- |
| 2486 1.0 | initial revision | 2486 1.0 | initial revision |
| 2487 2.0 | Describe protocol version 2.0. | 2487 2.0 | Describe protocol version 2.0. |
| 2488 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. | 2488 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. |
| 2489 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. | 2489 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. |
| 2490 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. | 2490 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. |
| 2491 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. | 2491 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. |
| 2492 | 2492 |
| 2493 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato
ry-discuss | 2493 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato
ry-discuss |
| OLD | NEW |