Skip to content
instance method

Thread#backtrace_locations

(*untyped args) -> ::Array[untyped]?
thread.backtrace_locations(*args) → array or nil

Returns the execution stack for the target thread—an array containing backtrace location objects.

See Thread::Backtrace::Location for more information.

This method behaves similarly to Kernel#caller_locations except it applies to a specific thread.

See also #backtrace #exit #alive? #fetch also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0