Debug helpers for solutions. (dbg form) prints a labelled value and returns
it. Debugging is decided when a solution file is loaded: bb aoc solve --debug
turns it on, and without --debug every dbg call expands to the bare form, so
it costs nothing at run time. In a REPL it defaults to on.
Debug helpers for solutions. `(dbg form)` prints a labelled value and returns it. Debugging is decided when a solution file is loaded: `bb aoc solve --debug` turns it on, and without `--debug` every `dbg` call expands to the bare form, so it costs nothing at run time. In a REPL it defaults to on.
(configure! {:keys [debug pretty]})Sets debugging from CLI options. Takes effect for code loaded afterwards.
Sets debugging from CLI options. Takes effect for code loaded afterwards.
(dbg form)Prints form and its value, then returns the value. When debugging is off as
the code is loaded, expands to just form.
Prints `form` and its value, then returns the value. When debugging is off as the code is loaded, expands to just `form`.
(print-debug label value)Prints label (dimmed) and value using the current settings
Prints `label` (dimmed) and `value` using the current settings
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |