require "pry-stack_explorer"
def a
b
end
def b
Thread.new { c }.join
end
def c
d
end
def d
binding.pry
end
a
Currently, stack_explorer will only be able to display the last three steps of the stack (in methods d, c and b). It does not know how we got into b though:
Showing all accessible frames in stack (3 in total):
--
=> #0 [method] d <Object#d()>
#1 [method] c <Object#c()>
#2 [block] block in b <Object#b()>
Imagine the following code:
Currently, stack_explorer will only be able to display the last three steps of the stack (in methods
d
,c
andb
). It does not know how we got intob
though: