class Rubinius::Debugger::Command::DeleteBreakpoint

Public Instance Methods

run(args) click to toggle source
# File lib/rubinius/debugger/commands.rb, line 193
def run(args)
  if !args or args.empty?
    error "Please specify which breakpoint by number"
    return
  end

  begin
    i = Integer(args.strip)
  rescue ArgumentError
    error "'#{args}' is not a number"
    return
  end

  @debugger.delete_breakpoint(i)
end