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

Unified Diff: runtime/observatory/lib/src/elements/script_inset.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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/script_inset.html
diff --git a/runtime/observatory/lib/src/elements/script_inset.html b/runtime/observatory/lib/src/elements/script_inset.html
index fb8c2dc1892d0a580d98545afa36e4c25fcbb453..e01110a772cad62773328ec20587c269108d2c00 100644
--- a/runtime/observatory/lib/src/elements/script_inset.html
+++ b/runtime/observatory/lib/src/elements/script_inset.html
@@ -25,7 +25,10 @@
line-height: 125%;
white-space: pre;
}
- .sourceItemCurrent {
+ .currentLine {
+ background-color: #fff;
+ }
+ .currentCol {
background-color: #6cf;
}
.hitsNone, .hitsNotExecuted, .hitsExecuted {
@@ -69,7 +72,13 @@
<div class="sourceItem">&nbsp;</div>
<template if="{{ line.line == currentLine }}">
- <div class="sourceItemCurrent">{{line.text}}</div>
+ <div class="sourceItem"><span class="currentLine">{{
+ clip(line.text,0,currentCol
+ )}}</span><span class="currentCol">{{
+ clip(line.text,currentCol,currentCol+1)
+ }}</span><span class="currentLine">{{
+ clip(line.text,currentCol+1)
+ }}</span></div>
</template>
<template if="{{ line.line != currentLine }}">
<div class="sourceItem">{{line.text}}</div>

Powered by Google App Engine
This is Rietveld 408576698