(wrap-cider-debug handler)
Establishes thread local bindings necessary for CIDER debugging. This should only be used in development, but it is safe to include even when cider-nrepl is not on the classpath.
As of CIDER 0.20, when code instrumented for CIDER debugging is called outside of an nREPL request/response cycle (e.g. when called from a ring handler), there is some global state that is modified and can cause break points to no longer break. Establishing a thread local binding for each ring request leaves the global state alone (as it should), and therefore break points work correctly.
Establishes thread local bindings necessary for CIDER debugging. This should only be used in development, but it is safe to include even when cider-nrepl is not on the classpath. As of CIDER 0.20, when code instrumented for CIDER debugging is called outside of an nREPL request/response cycle (e.g. when called from a ring handler), there is some global state that is modified and can cause break points to no longer break. Establishing a thread local binding for each ring request leaves the global state alone (as it should), and therefore break points work correctly.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close