Re: getting a stack trace

2013-10-18 Thread Brian Craft
Yes, thanks! On Friday, October 18, 2013 12:42:00 PM UTC-7, Stanislav Sedov wrote: > > > On Oct 18, 2013, at 12:35 PM, Brian Craft > > wrote: > > > 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-

Re: getting a stack trace

2013-10-18 Thread Stanislav Sedov
On Oct 18, 2013, at 12:35 PM, Brian Craft wrote: > 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 IllegalArgumentE

Re: getting a stack trace

2013-10-18 Thread Brian Craft
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,

Re: getting a stack trace

2013-10-18 Thread Alex Baranosky
> jstack On Fri, Oct 18, 2013 at 9:44 AM, Brian Craft 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? >

getting a stack trace

2013-10-18 Thread Brian Craft
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 Go