OLD | NEW |
1 # Dart VM Service Protocol 1.0 (Draft 1) | 1 # Dart VM Service Protocol 1.0 (Draft 1) |
2 | 2 |
3 This document describes _draft 1_ of _version 1.0_ of the Dart VM | 3 This document describes _draft 1_ of _version 1.0_ of the Dart VM |
4 Service Protocol. This protocol is used to communicate with a running | 4 Service Protocol. This protocol is used to communicate with a running |
5 Dart Virtual Machine. | 5 Dart Virtual Machine. |
6 | 6 |
7 To use the Service Protocol, start the VM with the *--observe* flag. | 7 To use the Service Protocol, start the VM with the *--observe* flag. |
8 The VM will start a webserver which services protocol requests via WebSocket. | 8 The VM will start a webserver which services protocol requests via WebSocket. |
9 It is possible to make HTTP (non-WebSocket) requests, | 9 It is possible to make HTTP (non-WebSocket) requests, |
10 but this does not allow access to VM _events_ and is not documented | 10 but this does not allow access to VM _events_ and is not documented |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 // The number of variables in this context. | 864 // The number of variables in this context. |
865 int length; | 865 int length; |
866 } | 866 } |
867 ``` | 867 ``` |
868 | 868 |
869 ``` | 869 ``` |
870 class Context { | 870 class Context { |
871 // The number of variables in this context. | 871 // The number of variables in this context. |
872 int length; | 872 int length; |
873 | 873 |
| 874 // The enclosing context for this context. |
| 875 Context parent [optional]; |
| 876 |
874 // The variables in this context object. | 877 // The variables in this context object. |
875 ContextElement[] variables; | 878 ContextElement[] variables; |
876 } | 879 } |
877 ``` | 880 ``` |
878 | 881 |
879 ### ContextElement | 882 ### ContextElement |
880 | 883 |
881 ``` | 884 ``` |
882 class ContextElement { | 885 class ContextElement { |
883 @Instance|Sentinel value; | 886 @Instance|Sentinel value; |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 // A list of isolates running in the VM. | 1874 // A list of isolates running in the VM. |
1872 @Isolate[] isolates | 1875 @Isolate[] isolates |
1873 } | 1876 } |
1874 ``` | 1877 ``` |
1875 | 1878 |
1876 ## Revision History | 1879 ## Revision History |
1877 | 1880 |
1878 version | comments | 1881 version | comments |
1879 ------- | -------- | 1882 ------- | -------- |
1880 1.0 draft 1 | initial revision | 1883 1.0 draft 1 | initial revision |
OLD | NEW |