ah, sorry, that's a shell tool? I meant dumping a stack trace from code. 
Throwing & catching works, it's just a bit goofy. Like

(defn- stack-trace [msg]
  (try
    (throw (IllegalArgumentException. msg))
    (catch IllegalArgumentException e
      (stacktrace/print-stack-trace e))))


On Friday, October 18, 2013 10:17:43 AM UTC-7, Alex Baranosky wrote:
>
> > jstack <process-id>
>
>
> On Fri, Oct 18, 2013 at 9:44 AM, Brian Craft <[email protected]<javascript:>
> > wrote:
>
>> In trying to understand how threads work I'd like to dump a stack trace 
>> at various places. All the stack trace calls take an exception. Is there 
>> some simpler way, or should I throw & catch an except just to get a stack 
>> trace?
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to [email protected]<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to