Sha256: 90247bfcc9a9dc8bdfd16b01b9f46cb13853292fc99d721138ea965a7aa8bc34

Contents?: true

Size: 653 Bytes

Versions: 22

Compression:

Stored size: 653 Bytes

Contents

module Debugger

  # Implements debugger "skip" command
  class SkipCommand < Command
    self.allow_in_control = true

    def regexp
      / ^\s*
         sk(?:ip)? \s*
         $
      /ix
    end

    def execute
      Debugger::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

22 entries across 22 versions & 3 rubygems

Version Path
debugger2-1.0.0.beta2 lib/ruby-debug/commands/skip.rb
debugger2-1.0.0.beta1 lib/ruby-debug/commands/skip.rb
needy_debugger-1.4.0 lib/ruby-debug/commands/skip.rb
debugger-1.4.0 lib/ruby-debug/commands/skip.rb
debugger-1.3.3 lib/ruby-debug/commands/skip.rb
debugger-1.3.2 lib/ruby-debug/commands/skip.rb
debugger-1.3.1 lib/ruby-debug/commands/skip.rb
debugger-1.3.0 lib/ruby-debug/commands/skip.rb
debugger-1.2.4 lib/ruby-debug/commands/skip.rb
debugger-1.2.3 lib/ruby-debug/commands/skip.rb
debugger-1.2.2 lib/ruby-debug/commands/skip.rb
debugger-1.2.1 lib/ruby-debug/commands/skip.rb
debugger-1.2.0 lib/ruby-debug/commands/skip.rb
debugger-1.1.4 lib/ruby-debug/commands/skip.rb
debugger-1.1.3 lib/ruby-debug/commands/skip.rb
debugger-1.1.2 lib/ruby-debug/commands/skip.rb
debugger-1.1.1 lib/ruby-debug/commands/skip.rb
debugger-1.1.0 lib/ruby-debug/commands/skip.rb
debugger-1.0.1 lib/ruby-debug/commands/skip.rb
debugger-1.0.0 cli/ruby-debug/commands/skip.rb