Sha256: 8d78c3892ab19bce3a708ce264459e5a08f1cc01f7293f35d68f859593e2458e

Contents?: true

Size: 872 Bytes

Versions: 6816

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true

require_relative "../command"
require_relative "../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
      <<-DESCRIPTION
        s[tep][ times]

        #{short_description}
      DESCRIPTION
    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

6,816 entries across 6,813 versions & 32 rubygems

Version Path
ory-client-1.16.4 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
ory-client-1.16.3 vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_id_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb