Sha256: 99eedc0c0531d79bd531908d7f285bbb38a0989ee90628698aae62e3c44abbd8

Contents?: true

Size: 683 Bytes

Versions: 6490

Compression:

Stored size: 683 Bytes

Contents

# frozen_string_literal: true

require "pry-byebug/helpers/navigation"

module PryByebug
  #
  # Move to a specific frame in the callstack
  #
  class FrameCommand < Pry::ClassCommand
    include Helpers::Navigation

    match "frame"
    group "Byebug"

    description "Move to specified frame #."

    banner <<-BANNER
        Usage: frame [TIMES]

        Move to specified frame #.

        Examples:
          frame   #=> Show current frame #.
          frame 5 #=> Move to frame 5.
    BANNER

    def process
      PryByebug.check_file_context(target)

      breakout_navigation :frame, index: args.first
    end
  end
end

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

Version data entries

6,490 entries across 6,486 versions & 29 rubygems

Version Path
cybrid_api_organization_ruby-0.122.48 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_bank_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_id_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_organization_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_id_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_bank_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_organization_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_organization_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_id_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_bank_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_bank_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_id_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_organization_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_bank_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_organization_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_id_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_bank_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_id_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
cybrid_api_organization_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb
ory-client-1.15.10 vendor/bundle/ruby/3.1.0/gems/pry-byebug-3.10.1/lib/pry-byebug/commands/frame.rb