This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-29
Channels
- # babashka (168)
- # beginners (60)
- # calva (21)
- # cider (44)
- # clj-kondo (27)
- # cljs-dev (4)
- # cljsrn (2)
- # clojure (157)
- # clojure-australia (27)
- # clojure-bay-area (7)
- # clojure-czech (1)
- # clojure-europe (94)
- # clojure-nl (2)
- # clojure-spec (3)
- # clojure-sweden (11)
- # clojure-uk (35)
- # clojurescript (19)
- # cursive (12)
- # events (1)
- # figwheel-main (1)
- # fulcro (28)
- # honeysql (7)
- # jackdaw (9)
- # kaocha (4)
- # keechma (1)
- # malli (7)
- # midje (1)
- # missionary (1)
- # music (1)
- # off-topic (45)
- # pathom (18)
- # polylith (6)
- # practicalli (4)
- # random (1)
- # reagent (3)
- # reitit (3)
- # shadow-cljs (74)
- # sql (9)
has anyone got breakpoints working with the latest Cursive ?
working for me on IJ Ultimate 2020.3, Cursive 1.10.2-2020.3
I'm on the same versions except IJ CE
ok I've got it. Breakpoints don't work in a namespace if you eval code in that ns using "send form to REPL"
you have to eval code from another namespace because otherwise it can't find the information needed and the breakpoint turns into a grayed-out icon
so it looks like breakpoints are limited to code outside the namespace from which you're evaluating code
No, that’s not right - the main problem is generally line numbers in the generated code, which can change if you’re editing and sending only parts of a namespace (i.e. with send form).
If you’re debugging a namespace, I always recommend re-sending the whole file to ensure all the line numbers are correct.
I tried that (select-all, send to REPL) many times in different ways and it didn't work for me. Then I tried doing (use :reload this-namespace)
in my (comment)
block in the same file and it worked!
Select all and send is not the same thing, you want to use Tools -> REPL -> Load file in REPL which uses load-file
and correctly creates the line numbers in the bytecode. Or require :reload
will work too, anything that causes the whole namespace to be loaded using load-file
.
got it. It works
thanks for your help!