For those of us using CIDER don't forget #break / #dbg!
https://docs.cider.mx/cider/debugging/debugger.html#using-th...
https://docs.cider.mx/cider/debugging/debugger.html#using-th...
#dbg(defn get-first [input] (nth input 0))
(get-first [4 2 3]) ;; 4
(get-first 5) ;; gives me a stack trace and no program state
So it's nice to have, but I think this is maybe only useful if you're working through someone else's code?In conjunction with scope-capture, it is trivial to run that failing code again to have a closer look, and modify it to your liking till it runs as expected.
There are also conditional restart systems for Clojure that offer much more than this.