Skip to content

Commit be2b798

Browse files
authored
add a debugger UI (#80)
* prototype debugger * update styles * update to the latest vm_service_lib * use the new getScripts() API * debugger updates * implement async stepping; separate css * handle breaking on exceoptions * remove a todo * initial debugger tests * implement tests for debugging functionality * add a console; display object toString() result * typo * allow non-flutter selected isolates * move the debugger example * revert back to an older sdk * review comments
1 parent 0f83df4 commit be2b798

21 files changed

+2223
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ build/
88
pubspec.lock
99

1010
.idea/
11+
.data_dir/
1112

1213
# Directory created by dartdoc
1314
# If you don't generate documentation locally you can remove this line.

analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ linter:
9393
# - parameter_assignments # we do this commonly
9494
- prefer_adjacent_string_concatenation
9595
- prefer_asserts_in_initializer_lists
96-
- prefer_bool_in_asserts
9796
- prefer_collection_literals
9897
- prefer_conditional_assignment
9998
- prefer_const_constructors

lib/debugger/debugger.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/* Copyright 2019 The Chromium Authors. All rights reserved. */
2+
/* Use of this source code is governed by a BSD-style license that can be */
3+
/* found in the LICENSE file. */
4+
5+
.debugger-menu {
6+
width: 280px;
7+
margin-right: 18px;
8+
}
9+
10+
.source-head {
11+
font-weight: 600;
12+
color: #586069;
13+
background-color: #f3f3f3;
14+
border-bottom: 1px solid #dfe2e5;
15+
padding: 4px 8px;
16+
}
17+
18+
.breakpoints {
19+
width: 1em;
20+
}
21+
22+
.CodeMirror-gutter-elt .octicon {
23+
margin-left: 4px;
24+
color: #4078c0;
25+
}
26+
27+
.CodeMirror-linebackground.executionLine {
28+
background: #c4daf7;
29+
}
30+
31+
.execution-marker {
32+
color: #4078c0;
33+
margin-left: -2px;
34+
margin-top: -2px;
35+
z-index: 10;
36+
}
37+
38+
.break-on-exceptions {
39+
line-height: 28px;
40+
}
41+
42+
.break-on-exceptions label {
43+
margin-left: 6px;
44+
}
45+
46+
#resume-button {
47+
min-width: 90px
48+
}
49+
50+
.debugger-items-list {
51+
overflow-y: scroll;
52+
}

0 commit comments

Comments
 (0)