This is a custom tracer for Clairvoyant
This tracer is designed to work well with cljs-devtools
Add (my private fork of) Clairvoyant to your project :dependencies
.
Add re-frame-tracer to your project :dependencies
.
Add the following to your requires clause
[clairvoyant.core :refer-macros [trace-forms]]
[re-frame-tracer.core :refer [tracer]]
If you want to wrap your code in a green colour
(trace-forms {:tracer (tracer :color "green")}
;; your code here
)
Our Clairvoyant fork does not look at :elide-assert
for toggling tracing.
Instead, a Google define called clairvoyant.core.devmode
is employed. The
define defaults to false
and in order to enable it just add :closure-defines {"clairvoyant.core.devmode" true}
to your compiler options.