Have you tried naming the anonymous functions that might be culprits?

(fn trace-me [..] ...)

Thanks,
Ambrose


On Sun, May 11, 2014 at 1:33 AM, Pascal Germroth <funkyco...@gmail.com>wrote:

> Hi,
>
> Say I'm getting an "ArityException Wrong number of args (2) passed to:
> myparser/fn--106751" exception.
> Unfortunately the code is quite heavy on the higher order side, so the
> stack trace doesn't reveal anything useful, especially since the exception
> is thrown by the `apply` before, so I'm not even getting line number
> information. And I don't really want to read a mile of traces or step
> through every call of `apply`.
>
> Is there a direct way to get the source location information, like the
> stack-trace-printer seems to do, just from the generated name of a closure
> like "myparser/fn--106751"? It's not defined as a var, so (source) doesn't
> work.
>
>
> Cheers,
>
> --
> pascal
>
> --
> 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
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to