Sha256: 71842cef5cb5b14d1f2b3e7ea7cf76af41fbf35678b1d072e4678786813ed779

Contents?: true

Size: 654 Bytes

Versions: 13

Compression:

Stored size: 654 Bytes

Contents

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

13 entries across 12 versions & 3 rubygems

Version Path
pry-byebug-3.5.1 lib/pry-byebug/commands/frame.rb
tdiary-5.0.6 vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/frame.rb
pry-byebug-3.5.0 lib/pry-byebug/commands/frame.rb
pry-byebug-3.4.3 lib/pry-byebug/commands/frame.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/pry-byebug-3.4.2/lib/pry-byebug/commands/frame.rb
tdiary-5.0.5 vendor/bundle/gems/pry-byebug-3.4.2/lib/pry-byebug/commands/frame.rb
tdiary-5.0.4 vendor/bundle/gems/pry-byebug-3.4.2/lib/pry-byebug/commands/frame.rb
pry-byebug-3.4.2 lib/pry-byebug/commands/frame.rb
pry-byebug-3.4.1 lib/pry-byebug/commands/frame.rb
pry-byebug-3.4.0 lib/pry-byebug/commands/frame.rb
pry-byebug-3.3.0 lib/pry-byebug/commands/frame.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/pry-byebug-3.2.0/lib/pry-byebug/commands/frame.rb
pry-byebug-3.2.0 lib/pry-byebug/commands/frame.rb