This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-27
Channels
- # announcements (47)
- # babashka (36)
- # beginners (7)
- # biff (34)
- # calva (9)
- # cider (5)
- # clj-http (13)
- # clj-kondo (24)
- # cljs-dev (9)
- # clojure (146)
- # clojure-austin (1)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (4)
- # clr (1)
- # core-async (9)
- # cursive (11)
- # datomic (6)
- # emacs (17)
- # events (3)
- # fulcro (45)
- # graphql (7)
- # helix (1)
- # hyperfiddle (28)
- # java (1)
- # london-clojurians (1)
- # lsp (75)
- # malli (1)
- # membrane (35)
- # reitit (6)
- # releases (1)
- # shadow-cljs (48)
- # tools-build (5)
- # tools-deps (27)
heya, is there a way, while debugging, of capturing the result of the current expression? i.e. I can press p to inspect, is there a way of capturing it to a var without introducing an extra binding in the expression
Are you looking for *inspect*-def-current-value
?
YES! Thanks, and it’s bound to d
, score! 🙂
The trouble I had with this feature when I tried to use it a few times was that it used the default project namespace for the var instead of the current namespace and never really worked for me well
@U06BE1L6T If you call it interactively, it uses the current namespace (since at least CIDER 1.2.0, maybe even earlier): https://github.com/clojure-emacs/cider/blob/master/cider-inspector.el#L282-L284
YES! Thanks, and it’s bound to d
, score! 🙂