class Debugger::SkipCommand

Implements debugger “skip” command

Public Class Methods

help(cmd) click to toggle source
# File lib/ruby-debug/commands/skip.rb, line 24
 def help(cmd)
   %Q{
     sk[ip]\tskip the next thrown exception

     This is useful if you've explicitly caught an exception through
     the "catch" command, and wish to pass the exception on to the
     code that you're debugging.
    }
end
help_command() click to toggle source
# File lib/ruby-debug/commands/skip.rb, line 20
def help_command
  %w[skip]
end

Public Instance Methods

execute() click to toggle source
# File lib/ruby-debug/commands/skip.rb, line 14
def execute
  Debugger::skip_next_exception
  print "ok\n"
end
regexp() click to toggle source
# File lib/ruby-debug/commands/skip.rb, line 7
def regexp
  %r ^\s*
     sk(?:ip)? \s*
     $
  /x
end