It is often useful to turn on tracing during an operation, using the Lisp versions of the trace commands. For example, one might want to start the trace after it is learned that the color of block is red.
(:rules blocks ((color block red) -> (:lisp (acom-trace-logic))))