class DEBUGGER__::ThreadClient

def collect_locals(frame)

def collect_locals(frame)
  locals = []
  if s = frame&.self
    locals << ["%self", s]
  end
  special_local_variables frame do |name, val|
    locals << [name, val]
  end
  if vars = frame&.local_variables
    vars.each{|var, val|
      locals << [var, val]
    }
  end
  locals
end