Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: runtime/vm/service/service.md

Issue 2603383004: Sane asynchronous debugging and stack traces (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/stack_trace.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Dart VM Service Protocol 3.5 1 # Dart VM Service Protocol 3.5
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.5_ of the Dart VM Service Protocol. This 5 This document describes of _version 3.5_ 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 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 // A list of all flags in the VM. 1479 // A list of all flags in the VM.
1480 Flag[] flags; 1480 Flag[] flags;
1481 } 1481 }
1482 ``` 1482 ```
1483 1483
1484 A _FlagList_ represents the complete set of VM command line flags. 1484 A _FlagList_ represents the complete set of VM command line flags.
1485 1485
1486 ### Frame 1486 ### Frame
1487 1487
1488 ``` 1488 ```
1489 enum AsyncFrameKind {
1490 LiveFrame,
1491 MarkerFrame,
1492 HistoricalFrame,
1493 }
1494 ```
1495
1496 ```
1497 class AsyncFrame extends Response {
1498 AsyncFrameKind kind;
1499 int index;
1500 @Function function [optional];
1501 @Code code [optional];
1502 SourceLocation location [optional];
1503 BoundVariable[] vars [optional];
1504 String marker [optional];
1505 }
1506 ```
1507
1508 ```
1489 class Frame extends Response { 1509 class Frame extends Response {
1490 int index; 1510 int index;
1491 @Function function; 1511 @Function function;
1492 @Code code; 1512 @Code code;
1493 SourceLocation location; 1513 SourceLocation location;
1494 BoundVariable[] vars; 1514 BoundVariable[] vars;
1495 } 1515 }
1496 ``` 1516 ```
1497 1517
1498 ### Function 1518 ### Function
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 part of a [SourceReport](#sourcereport). 2430 part of a [SourceReport](#sourcereport).
2411 2431
2412 Note that _SourceReportRange_ does not extend [Response](#response) 2432 Note that _SourceReportRange_ does not extend [Response](#response)
2413 and therefore will not contain a _type_ property. 2433 and therefore will not contain a _type_ property.
2414 2434
2415 ### Stack 2435 ### Stack
2416 2436
2417 ``` 2437 ```
2418 class Stack extends Response { 2438 class Stack extends Response {
2419 Frame[] frames; 2439 Frame[] frames;
2440 AsyncFrame[] asyncFrames [optional];
2420 Message[] messages; 2441 Message[] messages;
2421 } 2442 }
2422 ``` 2443 ```
2423 2444
2424 ### ExceptionPauseMode 2445 ### ExceptionPauseMode
2425 2446
2426 ``` 2447 ```
2427 enum ExceptionPauseMode { 2448 enum ExceptionPauseMode {
2428 None, 2449 None,
2429 Unhandled, 2450 Unhandled,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 2.0 | Describe protocol version 2.0. 2613 2.0 | Describe protocol version 2.0.
2593 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. 2614 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.
2594 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. 2615 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.
2595 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. 2616 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.
2596 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. 2617 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.
2597 3.4 | Add the superType and mixin fields to Class. Added new pause event 'None'. 2618 3.4 | Add the superType and mixin fields to Class. Added new pause event 'None'.
2598 3.5 | Add the error field to SourceReportRange. Clarify definition of token pos ition. Add "Isolate must be paused" error code. 2619 3.5 | Add the error field to SourceReportRange. Clarify definition of token pos ition. Add "Isolate must be paused" error code.
2599 3.6 (unreleased) | Add 'scopeStartTokenPos', 'scopeEndTokenPos', and 'declaratio nTokenPos' to BoundVariable. Add 'PausePostRequest' event kind. Add 'Rewind' Ste pOption. Add error code 107 (isolate cannot resume). Add 'reloadSources' RPC and related error codes. 2620 3.6 (unreleased) | Add 'scopeStartTokenPos', 'scopeEndTokenPos', and 'declaratio nTokenPos' to BoundVariable. Add 'PausePostRequest' event kind. Add 'Rewind' Ste pOption. Add error code 107 (isolate cannot resume). Add 'reloadSources' RPC and related error codes.
2600 2621
2601 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato ry-discuss 2622 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato ry-discuss
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/stack_trace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698