Sha256: abff4ac0593fc2ce25834cd1c855198c7c1f0ee1b5cc88e937b78b08bd5293f2
Contents?: true
Size: 647 Bytes
Versions: 6
Compression:
Stored size: 647 Bytes
Contents
module Byebug # Implements byebug "skip" command class SkipCommand < Command self.allow_in_control = true def regexp / ^\s* sk(?:ip)? \s* $ /ix end def execute Byebug::skip_next_exception print "ok\n" end class << self def help_command %w[skip] end def help(cmd) %{ 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems