2Elm.Native.Debug.make = function(elm) {
3 elm.Native = elm.Native || {};
4 elm.Native.Debug = elm.Native.Debug || {};
5 if (elm.Native.Debug.values) return elm.Native.Debug.values;
6 if ('values' in Elm.Native.Debug)
7 return elm.Native.Debug.values = Elm.Native.Debug.values;
9 var show = Elm.Native.Show.make(elm).show;
10 var replace = Elm.Native.Utils.make(elm).replace;
12 function log(tag, value) {
13 var msg = tag + ': ' + show(value);
14 var process = process || {};
16 process.stdout.write(msg);
23 function tracePath(debugId, elem) {
24 var props = replace([["debugTracePathId",debugId]], elem.props);
25 return replace([["props",props]], elem);
28 function WatchTracker() {
30 this.clear = function() {
33 this.pushFrame = function() {
34 var lastFrame = this.frames[this.frames.length - 1];
35 this.frames.push(lastFrame);
37 this.notify = function(tag, value) {
38 this.frames[this.frames.length - 1][tag] = value;
41 var watchTracker = new WatchTracker();
43 function watch(tag, value) {
44 watchTracker.notify(tag, value);
48 function watchSummary(tag, f, value) {
49 watchTracker.notify(tag, f(value));
53 Elm.Native.Debug.values = {
54 tracePath: F2(tracePath),
57 watchSummary:F3(watchSummary),
58 watchTracker: watchTracker
60 return elm.Native.Debug.values = Elm.Native.Debug.values;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list