{"record":{"id":"925f1bb68e297248","repo":"deivid-rodriguez/byebug","slug":"unknown-command-name-try-help","errorCode":null,"errorMessage":"Unknown command '#{name}'. Try '#{help}'","messagePattern":"Unknown command '#(.+?)'\\. Try '#(.+?)'","errorType":"exception","errorClass":"Byebug::CommandNotFound","httpStatus":null,"severity":"error","filePath":"lib/byebug/commands/help.rb","lineNumber":49,"sourceCode":"      \"Helps you using byebug\"\n    end\n\n    def execute\n      return help_for_all unless @match[1]\n\n      return help_for(@match[1], command) unless @match[2]\n\n      help_for(@match[2], subcommand)\n    end\n\n    private\n\n    def help_for_all\n      puts(processor.command_list.to_s) # rubocop:disable Lint/RedundantStringCoercion\n    end\n\n    def help_for(input, cmd)\n      raise CommandNotFound.new(input, command) unless cmd\n\n      puts(cmd.help)\n    end\n\n    def command\n      @command ||= processor.command_list.match(@match[1])\n    end\n\n    def subcommand\n      return unless command\n\n      @subcommand ||= command.subcommand_list.match(@match[2])\n    end\n  end\nend\n","sourceCodeStart":31,"sourceCodeEnd":65,"githubUrl":"https://github.com/deivid-rodriguez/byebug/blob/25476b18d97172fecd61056d36255f311aa4a73c/lib/byebug/commands/help.rb#L31-L65","documentation":"Error \"Unknown command '#{name}'. Try '#{help}'\" thrown in deivid-rodriguez/byebug.","triggerScenarios":"Thrown at lib/byebug/commands/help.rb:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the command or subcommand name for typos and run 'help' to list available commands.","Run 'help <cmd>' without a subcommand to see the valid subcommands of <cmd>."],"exampleFix":"(byebug) help break   # use the exact command name instead of an unknown one","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"25476b18d97172fecd61056d36255f311aa4a73c","analyzedAt":"2026-08-23T12:31:57.934Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}