class Byebug::VarCommand::ConstCommand

def execute

def execute
  obj = warning_eval(str_obj)
  return errmsg(pr("variable.errors.not_module", object: str_obj)) unless obj.is_a?(Module)
  constants = warning_eval("#{str_obj}.constants")
  puts prv(constants.sort.map { |c| [c, obj.const_get(c)] }, "constant")
end