This panel provides an interactive, explorative UI through which you can browse the form-by-form execution trace of the ClojureScript code in your event handlers. You can inspect the data produced by every ClojureScript form, while retaining overall context.
Here's what it would look like if you had it setup:
First, adjust your project.clj
by following these instructions to add day8.re-frame/tracing
to the :dev
:dependencies
.
Then, within the namespace of yours which contains the event handlers to be traced (perhaps called events.cljs
):
:require
to the ns
: [day8.re-frame.tracing :refer-macros [fn-traced]]
fn-traced
instead of fn
, like this:(reg-event-db
:some-id
(fn-traced [db event] ;; <-- notice the use of `fn-traced` instead of `fn`
... code in here))
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close