0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Syntax fixes

This commit is contained in:
Hirunatan 2020-04-28 11:58:33 +02:00 committed by GitHub
parent 0512a8dc5f
commit cc5d0b8fbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ To activate it, open the REPL (`shadow-cljs cljs-repl main`) and type
```clojure
(ns uxbox.util.debug)
(debug-all!) ; to enable all visual aids
(debug! <option>) ; current options are :bounding-boxes :group :events :rotation-handler
(debug! <option>) ; current options are :bounding-boxes :group :events :rotation-handler
```
Then you need to refresh the screen, for example by selecting some shape
@ -23,15 +23,15 @@ with the mouse.
You can deactivate debug mode with
```clojure
(debug-none!) ; to disable all visual aids
(-debug! &lt;option&gt;) ; to disable only one
(-debug! <option>) ; to disable only one
```
There are also some useful functions:
```clojure
(dump-state) ; to print in console all the global state
(dump-objects) ; to print in console all objects in workspace
(logjs &lt;msg&gt; &lt;var&gt;) ; to print the value of a variable
(tap &lt;fn&gt;) ; to include a function with side effect (e.g. logjs) in a transducer.
(logjs <msg> <var>) ; to print the value of a variable
(tap <fn>) ; to include a function with side effect (e.g. logjs) in a transducer.
```