A debugging macro to make function calls verbose
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/verbosely
.gitattributes
.gitignore
README.md
build.boot

README.md

Verbosely!

A macro to print function arguments and result verbosely!

Usage

Clojars Project

[mvc-works/verbosely "0.1.2"]

To require the macro(in ClojureScript):

(:require-macros [verbosely.core :refer [verbosely! log!]])
verbosely!

For example you have a function called f:

(defn f [x y] (+ x y))

(f (+ 44 55) (+ 44 66))

Change your code to:

(verbosely! f (+ 44 55) (+ 44 66))

And you get logs like:

Calling: (f (+ 44 55) (+ 44 66))
...With: 99 110
Returns: 209

Now f runs verbosely!

log!
=> (log! a (+ 1 2))
(log! a (+ 1 2))
a: 1
(+ 1 2): 3
nil

License

MIT