Created
March 22, 2012 15:26
-
-
Save logosity/2159017 to your computer and use it in GitHub Desktop.
print out current stack in clojure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; print out the stack at the point of invocation of the macro (and continue execution) | |
;;; | |
(defmacro print-stack [] | |
`(doseq [s# (.getStackTrace (Thread/currentThread))] | |
(println s#))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment