Created
October 29, 2015 08:32
-
-
Save visibletrap/bdf16dd5596c9a72ec73 to your computer and use it in GitHub Desktop.
A convenient function to peek Clojure's stack trace at a certain position in code
This file contains 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
(defn stack-traces [] | |
(->> (Thread/currentThread) | |
(.getStackTrace) | |
(map (juxt #(.getClassName %) #(.getMethodName %) #(.getLineNumber %))) | |
(map #(clojure.string/join ":" %)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment