Fork me on GitHub
#cider
<
2018-10-11
>
fabrao02:10:05

Hello all, I that possible to do defmulti and defmethod debug with cider-debug-defun-at-point?

jumar06:10:27

@U0YJJPFRA Yeah, that should be possible. At least in a simple case like this:

(defmulti login (fn [user-role credentials] user-role))
(defmethod login :admin [_ credentials]
  (println "Admin credentials: " credentials))
(defmethod login :user [_ credentials]
  (println "User credentials: " credentials))

(login :admin {:licensee "jumarko" :license-key "xyz"})

(login :user {:licensee "jumarko" :license-key "xyz"})


fabrao21:10:53

debug is with println message

jumar06:10:48

No, cider-debug-defun-at-point - println doesn't have any special meaning here, just a dummy implementation.