Feature #8291
open
(2013/04/19 15:53), halorgium (Tim Carey-Smith) wrote:
Currently (({Thread.backtrace})) returns the stack frames for the currently running (({Fiber})).
It is not possible to retrieve the backtrace.
Building on http://bugs.ruby-lang.org/issues/8263, this would allow for this feature.
Sorry, I can't understand your proposal. Different discussion from #8263 ?
BTW, there are no Thread.backtrace method.
Thread.backtrace
#=>
ruby 2.1.0dev (2013-03-18 trunk 39808) [i386-mswin32_100]
t.rb:1:in <main>': undefined method
backtrace' for Thread:Class
(NoMethodError)
--
// SASADA Koichi at atdot dot net
(13/04/28 7:40), SASADA Koichi wrote:
BTW, there are no Thread.backtrace method.
Thread.backtrace
#=>
ruby 2.1.0dev (2013-03-18 trunk 39808) [i386-mswin32_100]
t.rb:1:in <main>': undefined method
backtrace' for Thread:Class
(NoMethodError)
It would be Thread#backtrace, I guess.
--
Nobu Nakada
I am proposing adding the ability to call Thread#root_fiber to return the Fiber which is considered the original co-routine for the specified Thread.
This is useful to be able to retrieve information about the original Fiber for the Thread.
(2013/04/28 19:35), halorgium (Tim Carey-Smith) wrote:
I am proposing adding the ability to call Thread#root_fiber to return the Fiber which is considered the original co-routine for the specified Thread.
This is useful to be able to retrieve information about the original Fiber for the Thread.
I understand what you want. How to use it?
--
// SASADA Koichi at atdot dot net
- Project changed from 14 to Ruby master
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0