deivid-rodriguez/byebug · error · Byebug::CommandNotFound
Unknown command '#{name}'. Try '#{help}'
Error message
Unknown command '#{name}'. Try '#{help}' What it means
Error "Unknown command '#{name}'. Try '#{help}'" thrown in deivid-rodriguez/byebug.
Source
Thrown at lib/byebug/subcommands.rb:28
# Subcommand additions.
#
module Subcommands
def self.included(command)
command.extend(ClassMethods)
end
extend Forwardable
def_delegators "self.class", :subcommand_list
#
# Delegates to subcommands or prints help if no subcommand specified.
#
def execute
subcmd_name = @match[1]
return puts(help) unless subcmd_name
subcmd = subcommand_list.match(subcmd_name)
raise CommandNotFound.new(subcmd_name, self.class) unless subcmd
subcmd.new(processor, arguments).execute
end
#
# Class methods added to subcommands
#
module ClassMethods
include Helpers::ReflectionHelper
#
# Default help text for a command with subcommands
#
def help
super + subcommand_list.to_s
end
#View on GitHub (pinned to 25476b18d9)
Solutions
- Check the subcommand name for typos; run '<cmd>' alone to list its valid subcommands.
- Use the exact subcommand name as registered in the command's subcommand list.
Example fix
(byebug) info breakpoints # instead of an invalid subcommand like 'info bp'
When it happens
Trigger: Thrown at lib/byebug/subcommands.rb:28 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deivid-rodriguez/byebug@25476b18d9 (2026-08-23).
Data as JSON: /api/errors/8a94de5d987d878f.
Report an issue: GitHub.