###Using Devtools/Dirac
Dirac is a fork of Chrome DevTools which provides integrated REPL in DevTools JS console
where you can evaluate ClojureScript in context of your breakpoint and other goodies.
It is installed as a Chrome extensions (see details in above link)
The project.clj already has the necessary dependencies namely:
binaryage/dirac & binaryage/devtools
including repl options and middleware.
#####First time setup for Canary/Unstable Chrome with Dirac support:
~/.dirac-chrome-profile
C:\Users\{username}\.dirac-chrome-profile
google-chrome-unstable --remote-debugging-port=9222 --no-first-run --user-data-dir=.dirac-chrome-profile
"C:\Users\{username}\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --remote-debugging-port=9222 --no-first-run --user-data-dir="C:\Users\{username}\.dirac-chrome-profile"
#####Running after setup
lein watch
lein repl
this opens nrepl on port 8230 and gateway waiting for port 8231 (which is dirac/devtools console repl will connect to).Can you improve this documentation? These fine people already did:
Isaac Johnston & Gregg8Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close