Skip to content

rukor/cljs-devtools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

186 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cljs-devtools Build Status

Clojars Project

  • Better presentation of ClojureScript values in Chrome DevTools
  • [optional] More informative exceptions (sanity hints)

An example of formatting various ClojureScript data structures:

Scope view / drawer Console (toggle with ESC)

An example of a sanity hint:

Read more in v0.4.0 release notes.

Integration in your own project

Add devtools dependency into your Leiningen's project.clj:

Clojars Project

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/set-pref! :install-sanity-hints true) ; this is optional
(devtools/install!)

(.log js/console (range 200))

See the sample project.

Enable Custom formatters in Chrome

(Available in Chrome 47 and higher)

  • Open DevTools
  • Go to Settings ("three dots" icon in the upper right corner of DevTools > Menu > Settings F1 > Console)
  • Check-in "Enable custom formatters"
  • Close DevTools
  • Open DevTools

Related links

License MIT

About

Chrome DevTools extensions for ClojureScript developers

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 53.4%
  • Clojure 46.4%
  • HTML 0.2%