Skip to content

it should work across thread creation boundaries #2

@dominikh

Description

@dominikh

Imagine the following code:

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()>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions