You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hashp is a better prn for debugging Clojure code. Inspired by
projects like Spyscope, Hashp (ab)uses data readers to make it
easier to get useful debugging data sent to STDERR.
Usage
Once installed, you can add #p in front of any form you wish to
print:
It's faster to type than (prn ...), returns the original result, and
produces more useful output by printing the original form, function
and line number:
:color? - set to true if the output should be in color. Defaults to
true unless the NO_COLOR environment variable was set.
:disabled? - if true then #p will do exactly nothing. This is
useful if you want to disable #p in a production environment with
no loss of performance. Defaults to false.
:tag - a symbol used for the tag, defaults to 'p.
:template - a string that can be used to customize the format of
#p. Defaults to: "#{tag}[{ns}/{fn}:{line}] {form} ⇒ {value}
:writer - a Writer to use for the output, defaults to *err*,
which writes to STDERR. If you want to write to STDOUT instead, set
this to *out*.