mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🐛 Syntax fixes
This commit is contained in:
parent
0512a8dc5f
commit
cc5d0b8fbf
1 changed files with 4 additions and 4 deletions
|
@ -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! <option>) ; 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 <msg> <var>) ; to print the value of a variable
|
||||
(tap <fn>) ; 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.
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue