Fork me on GitHub
#emacs
<
2021-08-24
>
matheusashton13:08:30

Hello! I'm using doom emacs and recently started to work with clojure, I'm trying to figure it out how to integrate cider in my dev flow, eg: trying to debug code from a unit test. Do you have some article about that, or could you describe how do you do?

👋 3
djm13:08:19

Documentation around debugging can be found here: https://docs.cider.mx/cider/debugging/debugger.html

djm13:08:53

The extra short version is that if you compile a defn with C-u C-c C-c or C-u C-M-x (instead of C-c C-c or C-M-x), it’ll instrument it, and when you run your tests it’ll break when that function is called

practicalli-johnny15:08:00

@U8C850K42 example of using cider-debugger with Emacs (its Spacemacs, but it includes the full command, so should be applicable) https://practical.li/spacemacs/debug-clojure/cider-debug.html

matheusashton15:08:24

I'll take a look at those, thank you!