###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-profileC:\Users\{username}\.dirac-chrome-profilegoogle-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 watchlein 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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |