diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-28 23:21:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-28 23:25:21 -0700 |
commit | 6c1376f8307a3c7b98dfd5ef09670bd15c05f399 (patch) | |
tree | 7baa415602234e3619a710f4c23907666ef4b716 /081run_interactive.cc | |
parent | c769b878f65247fff2f4dabaf7948709ff1dcadb (diff) | |
download | mu-6c1376f8307a3c7b98dfd5ef09670bd15c05f399.tar.gz |
2095
Finally terminate the experiment of keeping debug prints around. I'm also going to give up on maintaining counts. What we really need is two kinds of tracing: a) For tests, just the domain-specific facts, organized by labels. b) For debugging, just transient dumps to stdout. b) only works if stdout is clean by default. Hmm, I think this means 'stash' should be the transient kind of trace.
Diffstat (limited to '081run_interactive.cc')
-rw-r--r-- | 081run_interactive.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/081run_interactive.cc b/081run_interactive.cc index 411b448a..9c5350e7 100644 --- a/081run_interactive.cc +++ b/081run_interactive.cc @@ -24,7 +24,6 @@ recipe main [ RUN_INTERACTIVE, :(before "End Primitive Recipe Numbers") Recipe_ordinal["run-interactive"] = RUN_INTERACTIVE; -//? cerr << "run-interactive: " << RUN_INTERACTIVE << '\n'; //? 1 :(before "End Primitive Recipe Implementations") case RUN_INTERACTIVE: { if (SIZE(ingredients) != 1) { @@ -294,9 +293,7 @@ long long int stringified_value_of_location(long long int address) { long long int trace_contents(const string& layer) { if (!Trace_stream) return 0; -//? cerr << "trace stream exists\n"; //? 1 if (trace_count(layer) <= 0) return 0; -//? cerr << layer << " has something\n"; //? 1 ostringstream out; for (vector<trace_line>::iterator p = Trace_stream->past_lines.begin(); p != Trace_stream->past_lines.end(); ++p) { if (p->label != layer) continue; @@ -305,7 +302,6 @@ long long int trace_contents(const string& layer) { } string result = out.str(); assert(!result.empty()); -//? cerr << layer << ":\n" << result << "\n--\n"; //? 1 truncate(result); return new_mu_string(result); } |