Fork me on GitHub
#cider
<
2019-04-29
>
bozhidar05:04:40

I think there was a command to inspect the last value.

yuhan08:04:07

cider-inspect-last-result? Unfortunately that doesn't seem to work during a debugging session, it just freezes for a while and throws a "Sync nREPL request timed out"

4
bozhidar12:04:33

Ah, yeah. I didn’t actually see the screenshot until now.

bozhidar12:04:54

I don’t have the functionality you’re after exists (yet).

jumar20:04:30

@qythium I'm not sure what you're asking for - as you step through the debugger the values are shown. If you want to show a previous value then, I think, your only option is inspect and then copy the expression into the minibuffer

Perry Fraser20:04:41

How can I debug a function that takes args? If I do cider-debug-defun-at-point on

#dbg (verb-stem-to-table "porto" "porta")
I just get the normal (no breakpoints run) return value.

Perry Fraser20:04:21

And obviously I can’t run debug-defun-at-point in the func as the function itself (that takes args ofc) is what I’m debugging

Perry Fraser20:04:08

The only way I can seem to get it to work is with

(defn tmp [] #dbg (verb-stem-to-table "porto" "porta"))
(tmp) ;; Run debug-... with point here

Perry Fraser20:04:14

Oh, I’ve figured it out. You run debug on verb-stem-to-table then just normally eval (verb-stem-to-table "porto" "porta"). Sorry y’all.