class DEBUGGER__::Session

def config_show key

def config_show key
  key = key.to_sym
  config_detail = CONFIG_SET[key]
  if config_detail
    v = CONFIG[key]
    kv = "#{key} = #{v.inspect}"
    desc = config_detail[1]
    if config_default = config_detail[3]
      desc += " (default: #{config_default})"
    end
    line = "%-34s \# %s" % [kv, desc]
    if line.size > SESSION.width
      @ui.puts "\# #{desc}\n#{kv}"
    else
      @ui.puts line
    end
  else
    @ui.puts "Unknown configuration: #{key}. 'config' shows all configurations."
  end
end