cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
zimablue 2021-06-28T02:55:01.195900Z

hi, I asked this question in Calva but it's probably better suited here as it's more about the underlying tools => in calva, it is only possible to debug a form which has been explicitly reevaluated with breakpoints in it, but with cider itself is there any way to save the breakpoints into the file, so that just importing the module as normal and then calling a function defined in it would hit the breakpoint?

dpsutton 2021-06-28T03:45:45.196300Z

There are reader tags for this

dpsutton 2021-06-28T03:47:17.196700Z

https://docs.cider.mx/cider/1.1/debugging/debugger.html#understanding-breakpoints might be better actually

solf 2021-06-28T04:59:31.199300Z

I don’t think the reader tags help in @zimablue specific use case, as he wants to debug a function without using cider-eval-* functions. Requiring a file or calling cider-load-buffer won’t trigger the debug tags.

zimablue 2021-06-28T05:41:33.200Z

thank you, I will read said documents and get back

zimablue 2021-06-28T05:58:57.202900Z

I have read those documents before, and am still not sure of the answer. I think @dromar56 understand my question/the problem, for context my question is to do with wanting to develop some custom tooling, not just a stupidly finnicky workflow requirement

zimablue 2021-06-28T06:00:16.204300Z

if requiring a namespace containing reader conditionals doesn't cause it to be instrumented, and one wanted to instrument anything with those reader conditionals, then a workaround would be (at outermost-tool-level) to push every namespace through nrepl (???)

zimablue 2021-06-28T06:01:01.205200Z

or if it was simpler to do at a lower level, that sort of behaviour (instrument everythig with readers, across "requires") could be enabled/implemented in cider/orchard?

zimablue 2021-06-28T06:01:19.205600Z

I'm not confident any of these assertions are right, I'm just trying to communicate my current mental model