DANGER ZONE - WORK IN PROGRESS - EXPERIMENTAL APIs
Better presentation of ClojureScript values in Chrome Devtools:
Add devtools dependency into your Leiningen's project.clj:
To activate it. At some point you have to call install!
from devtools.core
namespace. Ideally run this at launch time of your app.
(ns your-project.core
(:require [devtools.core :as devtools]))
(devtools/install!)
(.log js/console (range 200))
Note: version 0.2.2 is compatible with Chromium built against Blink r194327 or higher.
You can see Blink version which was compiled in your Chrome under chrome://version (url).
See sample project
For now you must use Chrome Canary or bleeding edge build from chromium-browser-snapshots.
- Visit chrome://flags
- Search the page for "devtools".
- Click "Enable" under "Enable Developer Tools Experiments"
- Click "Relaunch Now"
- Open Dev Tools.
- Click the gear in the upper right to go to Settings.
- Click the "Experiments" tab.
- Press the shift key six times to show the "hidden experiments".
- Check "Custom Object Formatters".
- Close Dev Tools.
- Open Dev Tools.
- Click the gear to open settings again.
- Under "Console", check "Enable custom formatters".