📚 Improve frontend debugging documentation

This commit is contained in:
Andrés Moya 2020-09-23 09:28:31 +02:00 committed by Andrey Antukh
parent 55cfe10fd8
commit 9c61c52dc5
2 changed files with 55 additions and 15 deletions

View file

@ -1,5 +1,6 @@
(ns app.util.debug
"Debugging utils")
"Debugging utils"
(:require [cljs.pprint :refer [pprint]]))
(def debug-options #{:bounding-boxes :group :events :rotation-handler :resize-handler :selection-center #_:simple-selection})
@ -37,4 +38,7 @@
(js/console.log str (clj->js val))
val))
(when (exists? js/window)
(set! (.-dbg ^js js/window) clj->js)
(set! (.-pp ^js js/window) pprint))