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

Side by Side Diff: runtime/observatory/lib/src/elements/debugger.html

Issue 866663003: Add a working command line debugger to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> 1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="function_ref.html"> 2 <link rel="import" href="function_ref.html">
3 <link rel="import" href="nav_bar.html"> 3 <link rel="import" href="nav_bar.html">
4 <link rel="import" href="observatory_element.html"> 4 <link rel="import" href="observatory_element.html">
5 <link rel="import" href="script_inset.html"> 5 <link rel="import" href="script_inset.html">
6 <link rel="import" href="script_ref.html"> 6 <link rel="import" href="script_ref.html">
7 7
8 <!-- TODO(turnidge): Use core-icon once core_elements work properly in 8 <!-- TODO(turnidge): Use core-icon once core_elements work properly in
9 devtools --> 9 devtools -->
10 <polymer-element name="icon-expand-less" noscript> 10 <polymer-element name="icon-expand-less" noscript>
(...skipping 22 matching lines...) Expand all
33 flex-direction: column; 33 flex-direction: column;
34 justify-content: space-between; 34 justify-content: space-between;
35 } 35 }
36 nav-bar { 36 nav-bar {
37 flex: 0 0 auto; 37 flex: 0 0 auto;
38 } 38 }
39 .stack { 39 .stack {
40 flex: 0 0 auto; 40 flex: 0 0 auto;
41 overflow-y: auto; 41 overflow-y: auto;
42 } 42 }
43 .splitter {
44 height: 0px;
45 margin: 0px;
46 font-size: 1px;
47 border-bottom: 1px solid #888;
48 }
43 core-splitter { 49 core-splitter {
44 flex: 0 0 auto; 50 flex: 0 0 auto;
45 } 51 }
46 .console { 52 .console {
47 flex: 1 1 auto; 53 flex: 1 1 auto;
48 overflow-y: auto; 54 overflow-y: auto;
49 } 55 }
50 .commandline { 56 .commandline {
51 flex: 0 0 auto; 57 flex: 0 0 auto;
52 } 58 }
53 </style> 59 </style>
54 60
55 <div class="container"> 61 <div class="container">
56 <nav-bar> 62 <nav-bar id="navbarDiv" showNotify="{{ false }}">
57 <top-nav-menu></top-nav-menu> 63 <top-nav-menu></top-nav-menu>
58 <isolate-nav-menu isolate="{{ isolate }}"> 64 <isolate-nav-menu isolate="{{ isolate }}">
59 </isolate-nav-menu> 65 </isolate-nav-menu>
60 <nav-menu link="{{ makeLink('/debugger', isolate) }}" anchor="debugger" last="{{ true }}"></nav-menu> 66 <nav-menu link="{{ makeLink('/debugger', isolate) }}" anchor="debugger" last="{{ true }}"></nav-menu>
61 <nav-control></nav-control> 67 <nav-control></nav-control>
62 </nav-bar> 68 </nav-bar>
63 69 <div id="stackDiv" class="stack">
64 <div id="stack" class="stack"> 70 <debugger-stack id="stackElement" isolate="{{ isolate }}"></debugger-sta ck>
65 » <debugger-stack isolate="{{ isolate }}"></debugger-stack>
66 </div> 71 </div>
67 <!-- 72 <!--
68 <core-splitter direction="up" allowOverflow=true></core-splitter> 73 <core-splitter direction="up" allowOverflow=true></core-splitter>
69 <div class="console"> 74 -->
70 » <debugger-console isolate="{{ isolate }}"></debugger-console> 75 <div id="splitterDiv"><hr class="splitter"></div>
76 <div id="consoleDiv" class="console">
77 <debugger-console id="console" isolate="{{ isolate }}"></debugger-consol e>
71 </div> 78 </div>
72 <div class="commandline"> 79 <div id="commandDiv" class="commandline">
73 » <debugger-input isolate="{{ isolate }}"></debugger-input> 80 <debugger-input id="commandline" isolate="{{ isolate }}"></debugger-inpu t>
74 </div> 81 </div>
75 -->
76 </div> 82 </div>
77 </template> 83 </template>
78 </polymer-element> 84 </polymer-element>
79 85
80 <polymer-element name="debugger-stack" extends="observatory-element"> 86 <polymer-element name="debugger-stack" extends="observatory-element">
81 <template> 87 <template>
82 <link rel="stylesheet" href="css/shared.css"> 88 <link rel="stylesheet" href="css/shared.css">
83 <template if="{{ stack == null }}"> 89 <style>
84 Loading stack frames 90 .sampledMessage {
91 margin: 0px 20px 10px 20px;
92 font: 400 14px 'Montserrat', sans-serif;
93 line-height: 125%;
94 }
95 .splitter {
96 height: 0px;
97 margin: 0px;
98 font-size: 1px;
99 border-bottom: 1px dashed #888;
100 }
101 .noStack {
102 margin: 0px 20px 10px 20px;
103 font: normal 14px consolas, courier, monospace;
104 line-height: 125%;
105 }
106 </style>
107 <template if="{{ isSampled }}">
108 <div class="sampledMessage">
109 The program is not paused. The stack trace below may be out of date.<br >
110 <br>
111 <action-link label="Pause Isolate" callback="{{ doPauseIsolate }}">
112 </action-link>
113 <action-link label="Refresh Stack" callback="{{ doRefreshStack }}">
114 </action-link>
115 <br>
116 <br>
117 <hr class="splitter">
118 </div>
85 </template> 119 </template>
86 <template if="{{ stack != null }}"> 120 <template if="{{ !hasStack }}">
87 <ul class="list-group"> 121 <div class="noStack">No stack</div>
88 <template repeat="{{ frame in stack['frames'] }}">
89 <li class="list-group-item">
90 <debugger-frame frame="{{ frame }}"
91 expand="{{ frame['depth'] == activeFrame }}">
92 </debugger-frame>
93 </li>
94 </template>
95 </ul>
96 </template> 122 </template>
123 <ul id="frameList" class="list-group">
124 <!-- debugger-frame elements are added programmatically -->
125 </ul>
97 </template> 126 </template>
98 </polymer-element> 127 </polymer-element>
99 128
100 129
101 <polymer-element name="debugger-frame" extends="observatory-element"> 130 <polymer-element name="debugger-frame" extends="observatory-element">
102 <template> 131 <template>
103 <link rel="stylesheet" href="css/shared.css"> 132 <link rel="stylesheet" href="css/shared.css">
104 <style> 133 <style>
105 .frameOuter { 134 .frameOuter {
106 position: relative; 135 position: relative;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 </div> 221 </div>
193 </template> 222 </template>
194 </div> 223 </div>
195 </template> 224 </template>
196 </polymer-element> 225 </polymer-element>
197 226
198 <polymer-element name="debugger-console" extends="observatory-element"> 227 <polymer-element name="debugger-console" extends="observatory-element">
199 <template> 228 <template>
200 <link rel="stylesheet" href="css/shared.css"> 229 <link rel="stylesheet" href="css/shared.css">
201 <style> 230 <style>
202 .textBox { 231 .console {
203 position: absolute; 232 margin: 0px 20px 10px 20px;
204 bottom: 0px; 233 }
205 width: 100%; 234 .normal {
235 font: normal 14px consolas, courier, monospace;
236 line-height: 125%;
237 }
238 .bold {
239 font: bold 14px consolas, courier, monospace;
240 line-height: 125%;
241 }
242 .spacer {
243 height: 20px;
206 } 244 }
207 </style> 245 </style>
208 <div> 246 <div id="consoleText" class="console">
209 Debugging console is not yet implemented.<br> 247 <!-- Console output is added programmatically here using the 'normal'
248 and 'bold' styles. -->
210 </div> 249 </div>
211 </template> 250 </template>
212 </polymer-element> 251 </polymer-element>
213 252
214 <polymer-element name="debugger-input" extends="observatory-element"> 253 <polymer-element name="debugger-input" extends="observatory-element">
215 <template> 254 <template>
216 <link rel="stylesheet" href="css/shared.css"> 255 <link rel="stylesheet" href="css/shared.css">
217 <style> 256 <style>
218 .textBox { 257 .textBox {
219 font: 400 16px 'Montserrat', sans-serif; 258 margin: 20px;
220 width: 100%; 259 font: 400 16px consolas, courier, monospace;
260 width: 95%;
221 } 261 }
222 </style> 262 </style>
223 <input id="textBox" class="textBox" type="text" value="{{ text }}"> 263 <input id="textBox" class="textBox" type="text" value="{{ text }}" autofocus >
224 </template> 264 </template>
225 </polymer-element> 265 </polymer-element>
226 266
227 <script type="application/dart" src="debugger.dart"></script> 267 <script type="application/dart" src="debugger.dart"></script>
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.dart ('k') | runtime/observatory/lib/src/elements/isolate_summary.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698