mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 17:51:40 +02:00
📚 Improve frontend debugging documentation
This commit is contained in:
parent
55cfe10fd8
commit
9c61c52dc5
2 changed files with 55 additions and 15 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue