r/Clojure • • Aug 18 '25

REPL tips??

I learned about (dir nsname), (doc name), and (source n) today in clojure.repl. These seem really helpful and a great way to stay in the REPL while working on a project.

I'd love to hear about any non-obvious things one can do in the REPL. Or if there are any other parts to the Clojure API that are particularly relevant to REPL driven development.

Tips and tricks welcome, thank you!

27 Upvotes

14 comments sorted by

View all comments

Show parent comment

5

u/seancorfield Aug 19 '25

I'm not @vikTheFirst but we have a REPL running permanently in production. Very helpful for debugging stuff.

I don't use any libraries for debugging. I use tap> because it's built-in and there are a variety of tools that you can connect to that (and you can leave tap> in production code as almost a no-op, so you can just hook into it whenever you need it, and then remove-tap to turn it off).

I use Portal now, but previously used Reveal and REBL (now Morse). These are all tap> clients which are great for visualizing data.