class DEBUGGER__::ThreadClient

def activate_irb_integration

def activate_irb_integration
  IRB.setup(location, argv: [])
  workspace = IRB::WorkSpace.new(current_frame&.binding || TOPLEVEL_BINDING)
  irb = IRB::Irb.new(workspace)
  IRB.conf[:MAIN_CONTEXT] = irb.context
  IRB::Debug.setup(irb)
  IRB::Context.prepend(IrbPatch)
end