From: Joel VanderWerf Date: 2009-08-07T01:22:45+09:00 Subject: Re: Any tool for examine ruby's thread? Caleb Clausen wrote: > On 8/6/09, femto Zheng wrote: >> Yes,I've found the Thread.list fulfills my needs,Thanks. >> do you have any means for examning every thread's stacktrace? > > There does not seem to be a way to get the backtrace of another thread > -- even from within the debugger. This is a shame, because as you say > it's useful for debugging. There ought to be a Thread#caller or > Thread#backtrace method, which works like #caller but on another > thread. IIRC this has been requested and discussed a few times, and it might be available in development versions of 1.9.2[1], but not 1.8.x, AFAIK. [1] http://redmine.ruby-lang.org/issues/show/977 [2] google "ruby Thread#backtrace" for more discussion. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407