• (spy expr)
Evaluates expr and outputs the form and its result to the debug log; returns
the result of expr.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/logging.clj:236 top

(defmacro spy
  "Evaluates expr and outputs the form and its result to the debug log; returns 
  the result of expr."
  [expr]
  `(let [a# ~expr] (log :debug (str '~expr " => " a#)) a#))
Vars in clojure.contrib.logging/spy: defmacro apply concat let list seq str vector
Used in 0 other vars

Comments top

No comments for spy. Log in to add a comment.