OLD | NEW |
---|---|
1 # Dart VM Service Protocol 3.0 | 1 # Dart VM Service Protocol 3.0 |
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.0_ of the Dart VM Service Protocol. This | 5 This document describes of _version 3.0_ 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 20 matching lines...) Expand all Loading... | |
31 - [evaluateInFrame](#evaluateinframe) | 31 - [evaluateInFrame](#evaluateinframe) |
32 - [getFlagList](#getflaglist) | 32 - [getFlagList](#getflaglist) |
33 - [getIsolate](#getisolate) | 33 - [getIsolate](#getisolate) |
34 - [getObject](#getobject) | 34 - [getObject](#getobject) |
35 - [getStack](#getstack) | 35 - [getStack](#getstack) |
36 - [getVersion](#getversion) | 36 - [getVersion](#getversion) |
37 - [getVM](#getvm) | 37 - [getVM](#getvm) |
38 - [pause](#pause) | 38 - [pause](#pause) |
39 - [removeBreakpoint](#removebreakpoint) | 39 - [removeBreakpoint](#removebreakpoint) |
40 - [resume](#resume) | 40 - [resume](#resume) |
41 - [setExceptionPauseMode](#setexceptionpausemode) | 41 » - [setExceptionPauseMode](#setexceptionpausemode) |
42 - [setLibraryDebuggable](#setlibrarydebuggable) | 42 - [setLibraryDebuggable](#setlibrarydebuggable) |
43 - [setName](#setname) | 43 - [setName](#setname) |
44 - [setVMName](#setvmname) | 44 - [setVMName](#setvmname) |
45 - [streamCancel](#streamcancel) | 45 - [streamCancel](#streamcancel) |
46 - [streamListen](#streamlisten) | 46 - [streamListen](#streamlisten) |
47 - [Public Types](#public-types) | 47 - [Public Types](#public-types) |
48 - [BoundField](#boundfield) | 48 - [BoundField](#boundfield) |
49 - [BoundVariable](#boundvariable) | 49 - [BoundVariable](#boundvariable) |
50 - [Breakpoint](#breakpoint) | 50 - [Breakpoint](#breakpoint) |
51 - [Class](#class) | 51 - [Class](#class) |
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1131 An _Event_ is an asynchronous notification from the VM. It is delivered | 1131 An _Event_ is an asynchronous notification from the VM. It is delivered |
1132 only when the client has subscribed to an event stream using the | 1132 only when the client has subscribed to an event stream using the |
1133 [streamListen](#streamListen) RPC. | 1133 [streamListen](#streamListen) RPC. |
1134 | 1134 |
1135 For more information, see [events](#events). | 1135 For more information, see [events](#events). |
1136 | 1136 |
1137 ### EventKind | 1137 ### EventKind |
1138 | 1138 |
1139 ``` | 1139 ``` |
1140 enum EventKind { | 1140 enum EventKind { |
1141 // Notification that VM identifying information has changed. Currently used | |
1142 // to notify of changes to the VM debugging name via setVMName. | |
1143 VMUpdate, | |
Cutch
2015/10/13 19:58:09
Sort.
nweiz
2015/10/13 20:12:49
Sort how? They aren't alphabetical, so I assumed t
Cutch
2015/10/13 20:13:55
Acknowledged.
| |
1144 | |
1141 // Notification that a new isolate has started. | 1145 // Notification that a new isolate has started. |
1142 IsolateStart, | 1146 IsolateStart, |
1143 | 1147 |
1144 // Notification that an isolate is ready to run. | 1148 // Notification that an isolate is ready to run. |
1145 IsolateRunnable, | 1149 IsolateRunnable, |
1146 | 1150 |
1147 // Notification that an isolate has exited. | 1151 // Notification that an isolate has exited. |
1148 IsolateExit, | 1152 IsolateExit, |
1149 | 1153 |
1150 // Notification that isolate identifying information has changed. | 1154 // Notification that isolate identifying information has changed. |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2212 ## Revision History | 2216 ## Revision History |
2213 | 2217 |
2214 version | comments | 2218 version | comments |
2215 ------- | -------- | 2219 ------- | -------- |
2216 1.0 | initial revision | 2220 1.0 | initial revision |
2217 2.0 | Describe protocol version 2.0. | 2221 2.0 | Describe protocol version 2.0. |
2218 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 . | 2222 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 . |
2219 | 2223 |
2220 | 2224 |
2221 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato ry-discuss | 2225 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato ry-discuss |
OLD | NEW |