class DEBUGGER__::ThreadClient

def show_ivars pat, expr = nil

def show_ivars pat, expr = nil
  if expr && !expr.empty?
    _self = frame_eval(expr);
  elsif _self = current_frame&.self
  else
    _self = nil
  end
  if _self
    M_INSTANCE_VARIABLES.bind_call(_self).sort.each{|iv|
      value = M_INSTANCE_VARIABLE_GET.bind_call(_self, iv)
      puts_variable_info iv, value, pat
    }
  end
end