class Byebug::DisableCommand
def description
def description %{Disable breakpoints or displays. A disabled item is not forgotten, but has no effect until reenabled. Use the "enable" command to have it take effect again.} end
def disable_breakpoints(args)
def disable_breakpoints(args) enable_disable_breakpoints('disable', args) end
def disable_display(args)
def disable_display(args) enable_disable_display('disable', args) end
def execute
def execute return errmsg "\"disable\" must be followed by \"display\", " \ "\"breakpoints\" or breakpoint numbers.\n" unless @match[1] args = @match[1].split(/[ \t]+/) param = args.shift subcmd = Command.find(Subcommands, param) if subcmd send("disable_#{subcmd.name}", args) else send('disable_breakpoints', args.unshift(param)) end end
def names
def names %w(disable) end
def regexp
def regexp /^\s* dis(?:able)? (?:\s+(.+))? \s*$/x end