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

Side by Side Diff: tests/debugger/print_local_structure_expected.txt

Issue 2065933004: Support for accessing arrays in the debugger (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 Starting session. Type 'help' for a list of commands. 1 Starting session. Type 'help' for a list of commands.
2 2
3 > b breakHere 3 > b breakHere
4 ### set breakpoint id: '0' method: 'breakHere' bytecode index: '0' 4 ### set breakpoint id: '0' method: 'breakHere' bytecode index: '0'
5 > r 5 > r
6 tests/debugger/print_local_structure_test.dart:32:1 6 tests/debugger/print_local_structure_test.dart:32:1
7 32 breakHere() { } 7 32 breakHere() { }
8 > f 1 8 > f 1
9 > p *a 9 > p *a
10 Instance of 'A' { 10 Instance of 'A' {
(...skipping 24 matching lines...) Expand all
35 S1.i: 42 35 S1.i: 42
36 S1.i2: 8589934592 36 S1.i2: 8589934592
37 S2.n: null 37 S2.n: null
38 S2.d: 42.42 38 S2.d: 42.42
39 S3.shadowMe: 0 39 S3.shadowMe: 0
40 } 40 }
41 > p a.s.shadowMe 41 > p a.s.shadowMe
42 0 42 0
43 > p a.s.shadowMe.a 43 > p a.s.shadowMe.a
44 ### could not access 'a.s.shadowMe.a': 'a.s.shadowMe' is a primitive value '0' a nd does not have a field named 'a' 44 ### could not access 'a.s.shadowMe.a': 'a.s.shadowMe' is a primitive value '0' a nd does not have a field named 'a'
45 > p *list._list
46 Array with length 3 [
47 0 = null
48 1 = Instance of 'A'
49 2 = null
50 ]
51 > p *list._list.1
Søren Gjesse 2016/06/15 11:25:09 How about the operator [] syntax?
sigurdm 2016/06/15 14:50:49 Good idea. I'll handle that in a follow up CL.
52 Instance of 'A' {
53 S0.str: 'spaß'
54 S1.i: 42
55 S1.i2: 8589934592
56 S2.n: null
57 S2.d: 42.42
58 S3.shadowMe: 0
59 A.shadowMe: 42
60 A.t: true
61 A.f: false
62 A.s: Instance of 'S3'
63 }
64 > p *list._list.k
65 ### could not access 'list._list.k': list._list' is an array with length 3. It c annot be indexed with k
66 > p *list._list.-1
67 ### could not access 'list._list.-1': list._list' is an array with length 3. It cannot be indexed with -1
68 > p *list._list.4
69 ### could not access 'list._list.4': list._list' is an array with length 3. It c annot be indexed with 4
45 > c 70 > c
46 ### process terminated 71 ### process terminated
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698