On 18.11.2008, at 19:32, Shawn Hoover wrote:

> For functions defined in libs that you load into Clojure, you can  
> find out the file and line from the metadata. For functions you  
> define in the REPL, this trick won't help. Say you have (defn myfn  
> [] :test) in the user namespace. ^#'user/myfn gets the metadata  
> from the var that holds the function. To get the file try (:file  
> ^#'user/myfn). And for the line number, (:line ^#'user/myfn).

Thanks, that sounds useful already. Normally everything I have is  
defined in the REPL (through clojure-mode in Emacs), but I will  
happily load a bunch of functions from a file if that helps me  
debugging!

Konrad.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to