This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-19
Channels
- # bangalore-clj (1)
- # beginners (8)
- # boot (102)
- # cider (1)
- # clara (14)
- # cljs-dev (2)
- # cljsrn (2)
- # clojure (49)
- # clojure-poland (3)
- # clojure-russia (4)
- # clojure-serbia (1)
- # clojure-spec (5)
- # clojure-ukraine (1)
- # clojurescript (181)
- # core-async (4)
- # cursive (2)
- # datomic (7)
- # dirac (34)
- # figwheel (3)
- # fulcro (21)
- # hoplon (5)
- # om (1)
- # parinfer (4)
- # planck (27)
- # re-frame (30)
- # reagent (11)
- # rum (6)
- # shadow-cljs (22)
- # spacemacs (4)
- # unrepl (26)
I don't know if anyone here ever used the Pry debugger for Ruby/Rails I was wondering if it's possible to do the same thing with re-frame. That is, to be able to drop into a repl inside a function?
In a Rails handler you'd put a statement like binding.pry!
and, when execution hits that statement, it would drop into a REPL so that you could explore the local bindings etc...
@sandbags Maybe not exactly what you mean/want, but you can use (js-debugger)
and https://github.com/binaryage/dirac
This might do what you want too although not in exactly the same way
Unfortunately having set Dirac up I was able to set a breakpoint in my code, but the local scope isn't actually available!
i mean, i guess it is incredible enough that you can even start this monstrosity. it seems almost churlish to expect it to work.
I'm working on an app in react native in clojurescript these days and I get vertigo if I think too long about the stack underneath me
for such a repl centred language i am little more surprised this isn't out-of-the-box
@sandbags Dirac works, you probably didn't follow the setup steps properly. I could help you to set it up if you provided more info.
chrome version, dirac version, clojurescript version, any possible warnings/error messages, etc.
btw. are you aware of this FAQ point? you must use Chrome Canary with latest Dirac: https://github.com/binaryage/dirac/blob/master/docs/faq.md#why-should-i-use-recent-chrome-canary-with-dirac-devtools
also for troubleshooting you could try to open internal devtools on Dirac itself and also on Dirac's chrome extension background page: https://github.com/binaryage/dirac/blob/master/docs/faq.md#something-broke-how-do-i-debug-dirac-devtools-frontend