Sha256: b12c7f259d5f23619d6008e2c20df9a7f7e693fb48b628908919f9bda1f21f15

Contents?: true

Size: 739 Bytes

Versions: 26

Compression:

Stored size: 739 Bytes

Contents

require 'byebug/command'
require 'byebug/helpers/parse'

module Byebug
  #
  # Implements the next functionality.
  #
  # Allows the user the continue execution until the next instruction in the
  # current frame.
  #
  class NextCommand < Command
    include Helpers::ParseHelper

    def self.regexp
      /^\s* n(?:ext)? (?:\s+(\S+))? \s*$/x
    end

    def self.description
      <<-EOD
        n[ext][ nnn]

        #{short_description}
      EOD
    end

    def self.short_description
      'Runs one or more lines of code'
    end

    def execute
      steps, err = parse_steps(@match[1], 'Next')
      return errmsg(err) unless steps

      context.step_over(steps, context.frame.pos)
      processor.proceed!
    end
  end
end

Version data entries

26 entries across 25 versions & 3 rubygems

Version Path
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/byebug-9.1.0/lib/byebug/commands/next.rb
tdiary-5.0.6 vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/next.rb
byebug-9.1.0 lib/byebug/commands/next.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/byebug-9.0.6/lib/byebug/commands/next.rb
tdiary-5.0.5 vendor/bundle/gems/byebug-9.0.6/lib/byebug/commands/next.rb
tdiary-5.0.4 vendor/bundle/gems/byebug-9.0.6/lib/byebug/commands/next.rb
byebug-9.0.6 lib/byebug/commands/next.rb
byebug-9.0.5 lib/byebug/commands/next.rb
byebug-9.0.4 lib/byebug/commands/next.rb
byebug-9.0.3 lib/byebug/commands/next.rb
byebug-9.0.2 lib/byebug/commands/next.rb
byebug-9.0.1 lib/byebug/commands/next.rb
byebug-9.0.0 lib/byebug/commands/next.rb
byebug-8.2.5 lib/byebug/commands/next.rb
byebug-8.2.4 lib/byebug/commands/next.rb
byebug-8.2.3 lib/byebug/commands/next.rb
byebug-8.2.2 lib/byebug/commands/next.rb
byebug-8.2.1 lib/byebug/commands/next.rb
byebug-8.2.0 lib/byebug/commands/next.rb
byebug-8.1.0 lib/byebug/commands/next.rb