Instrument user code to "light up" when it runs. The instrumented code will report the value of local variables and report its return value. Implemented as an extension of the debugger.
Instrument user code to "light up" when it runs. The instrumented code will report the value of local variables and report its return value. Implemented as an extension of the debugger.
(eval-with-enlighten form)
Like eval
, but also enlighten code.
Like `eval`, but also enlighten code.
(light-form form {:keys [coor] :as extras} original-form)
Return the result of form, and maybe enlighten it.
Return the result of form, and maybe enlighten it.
(send-if-local sym extras locals)
If locals contains sym, send its value over the debug channel.
The value is added to extras
under :debug-value, and extras
is
sent over the debug channel with the :enlighten status.
If locals contains sym, send its value over the debug channel. The value is added to `extras` under :debug-value, and `extras` is sent over the debug channel with the :enlighten status.
(wrap-function-form [head & args :as form] {:keys [coor]})
Wrap a form representing a function/macro/special-form call. Return an equivalent form, instrumented to work with enlighten.
Currently this only instruments forms that could run several times in a single evaluation. This is necessary so that the client can clean-up overlays from previous evaluations.
Wrap a form representing a function/macro/special-form call. Return an equivalent form, instrumented to work with enlighten. Currently this only instruments forms that could run several times in a single evaluation. This is necessary so that the client can clean-up overlays from previous evaluations.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close