method

backtrace_locations

v2_2_9 - Show latest stable - Class: Thread
backtrace_locations(*args)
public

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.