diff options
Diffstat (limited to 'cpp/027debug.cc')
-rw-r--r-- | cpp/027debug.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/027debug.cc b/cpp/027debug.cc index d81071e9..90ef9e49 100644 --- a/cpp/027debug.cc +++ b/cpp/027debug.cc @@ -19,3 +19,24 @@ case _PRINT: { } break; } + +:(before "End Primitive Recipe Declarations") +_START_TRACING, +:(before "End Primitive Recipe Numbers") +Recipe_number["$start-tracing"] = _START_TRACING; +:(before "End Primitive Recipe Implementations") +case _START_TRACING: { + Trace_stream->dump_layer = "all"; +//? cout << Trace_stream << ": " << Trace_stream->dump_layer << '\n'; //? 1 + break; +} + +:(before "End Primitive Recipe Declarations") +_STOP_TRACING, +:(before "End Primitive Recipe Numbers") +Recipe_number["$stop-tracing"] = _STOP_TRACING; +:(before "End Primitive Recipe Implementations") +case _STOP_TRACING: { + Trace_stream->dump_layer = ""; + break; +} |