Sha256: c23208f4e61409eefecf4273dcf819506923e483c351778f27ddcb96aaf93d1c

Contents?: true

Size: 748 Bytes

Versions: 6819

Compression:

Stored size: 748 Bytes

Contents

# frozen_string_literal: true

require "pry-byebug/helpers/navigation"

module PryByebug
  #
  # Run a number of Ruby statements and then stop again
  #
  class StepCommand < Pry::ClassCommand
    include Helpers::Navigation

    match "step"
    group "Byebug"
    description "Step execution into the next line or method."

    banner <<-BANNER
        Usage: step [TIMES]

        Step execution forward. By default, moves a single step.

        Examples:
          step   #=> Move a single step forward.
          step 5 #=> Execute the next 5 steps.
    BANNER

    def process
      PryByebug.check_file_context(target)

      breakout_navigation :step, times: args.first
    end
  end
end

Pry::Commands.add_command(PryByebug::StepCommand)

Version data entries

6,819 entries across 6,814 versions & 32 rubygems

Version Path
cybrid_api_id_ruby-0.123.120 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/step.rb
cybrid_api_bank_ruby-0.123.119 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.119 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_id_ruby-0.123.119 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_bank_ruby-0.123.118 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_id_ruby-0.123.118 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.118 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_bank_ruby-0.123.117 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_id_ruby-0.123.117 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.117 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_bank_ruby-0.123.116 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.116 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_id_ruby-0.123.116 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_bank_ruby-0.123.115 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_id_ruby-0.123.115 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_organization_ruby-0.123.115 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
ory-client-1.15.17 vendor/bundle/ruby/3.1.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb
cybrid_api_bank_ruby-0.123.114 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/step.rb