Sha256: 12aa221fcbffc04eb178b4761f58c8c67df4889adf68473b7719f95d0d01851e

Contents?: true

Size: 815 Bytes

Versions: 26

Compression:

Stored size: 815 Bytes

Contents

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

module Byebug
  #
  # Implements the step functionality.
  #
  # Allows the user the continue execution until the next instruction, possibily
  # in a different frame. Use step to step into method calls or blocks.
  #
  class StepCommand < Command
    include Helpers::ParseHelper

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

    def self.description
      <<-EOD
        s[tep][ times]

        #{short_description}
      EOD
    end

    def self.short_description
      'Steps into blocks or methods one or more times'
    end

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

      context.step_into(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/step.rb
tdiary-5.0.6 vendor/bundle/gems/byebug-9.1.0/lib/byebug/commands/step.rb
byebug-9.1.0 lib/byebug/commands/step.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/byebug-9.0.6/lib/byebug/commands/step.rb
tdiary-5.0.5 vendor/bundle/gems/byebug-9.0.6/lib/byebug/commands/step.rb
tdiary-5.0.4 vendor/bundle/gems/byebug-9.0.6/lib/byebug/commands/step.rb
byebug-9.0.6 lib/byebug/commands/step.rb
byebug-9.0.5 lib/byebug/commands/step.rb
byebug-9.0.4 lib/byebug/commands/step.rb
byebug-9.0.3 lib/byebug/commands/step.rb
byebug-9.0.2 lib/byebug/commands/step.rb
byebug-9.0.1 lib/byebug/commands/step.rb
byebug-9.0.0 lib/byebug/commands/step.rb
byebug-8.2.5 lib/byebug/commands/step.rb
byebug-8.2.4 lib/byebug/commands/step.rb
byebug-8.2.3 lib/byebug/commands/step.rb
byebug-8.2.2 lib/byebug/commands/step.rb
byebug-8.2.1 lib/byebug/commands/step.rb
byebug-8.2.0 lib/byebug/commands/step.rb
byebug-8.1.0 lib/byebug/commands/step.rb