Fork me on GitHub
#cider
<
2017-12-24
>
johanatan05:12:57

hi, it seems that the cider debugger can only print locals for the current top (or bottom depending on your view) of the call stack. is there any way to get at the values of locals some frames below (or above) that one?

bozhidar09:12:11

I don’t think that’s possible right now.

johanatan22:12:32

hmm, do you know if it is possible to edit library code (in this case alpha.clj from clojure.spec) to insert a breakpoint at those earlier frames? [the buffer that popped open in emacs after running cider-doc and clicking the link to view source is read-only]. is there another way to edit this library code?

jumar19:12:36

@U0E98NQG2 Why not just use cider-debug-defun-at-point? Moreover, if you want to modify source of 3rd party code, you can navigate to the source, disable read-only mode (e.g. C-x C-q) and then modify source code and re-eval.

johanatan20:12:47

Because the function one frame below the one I’m interested in gets called a lot and only under rare circumstances calls the other.

johanatan20:12:04

Ah, yes, disabling read-only should work. Thx!