API for clojure.tools.trace
Full namespace name: clojure.tools.trace
This file defines simple tracing macros to help you see what your code is doing.
Public Variables and Functions
Usage: (deftrace name & definition)
Use in place of defn; traces each call/return of this fn, including
arguments. Nested calls to deftrace'd functions will print a
The first argument of the form definition can be a doc string
Usage: (dotrace fnames & exprs)
Given a sequence of function identifiers, evaluate the body
expressions in an environment in which the identifiers are bound to
the traced functions. Does not work on inlined functions,
such as clojure.core/+
Usage: (trace value)
(trace name value)
Sends name (optional) and value to the tracer function, then
returns value. May be wrapped around any expression without
affecting the result.
Usage: (trace-forms & body)
Trace all the forms in the given body. Returns any underlying uncaught exceptions that may make the forms fail.
Usage: (trace-ns ns)
Trace all fns in the given name space.
Usage: (trace-vars & vs)
Trace each of the specified Vars.
The arguments may be Var objects or symbols to be resolved in the current
Usage: (traceable? v)
Returns true if the given var can be traced, false otherwise
Usage: (traced? v)
Returns true if the given var is currently traced, false otherwise
Usage: (untrace-ns ns)
Untrace all fns in the given name space.
Usage: (untrace-vars & vs)
Untrace each of the specified Vars.
Reverses the effect of trace-var / trace-vars / trace-ns for each
of the arguments, replacing the traced functions with the original,