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, form) {
24 return replace([["debugTracePathId",debugId]], form);
27 function WatchTracker() {
29 this.clear = function() {
32 this.pushFrame = function() {
33 var lastFrame = this.frames[this.frames.length - 1];
34 this.frames.push(lastFrame);
36 this.notify = function(tag, value) {
37 this.frames[this.frames.length - 1][tag] = value;
40 var watchTracker = new WatchTracker();
42 function watch(tag, value) {
43 watchTracker.notify(tag, value);
47 function watchSummary(tag, f, value) {
48 watchTracker.notify(tag, f(value));
52 Elm.Native.Debug.values = {
53 tracePath: F2(tracePath),
56 watchSummary:F3(watchSummary),
57 watchTracker: watchTracker
59 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