Skip to content

Instantly share code, notes, and snippets.

@bhb
Created March 26, 2015 18:31
Show Gist options
  • Save bhb/3a2b4963da0e14dcbed4 to your computer and use it in GitHub Desktop.
Save bhb/3a2b4963da0e14dcbed4 to your computer and use it in GitHub Desktop.
Debug macro for Clojure (dbg)
(defmacro dbg [body]
`(let [x# ~body]
(println "dbg:" '~body "=" x#)
x#))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment