Sha256: c3fda5318d19d3c90b25e9ff79bbfe56d01c066c7744586e48eb097965c59a49

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

require "pry-byebug/helpers/navigation"

module PryByebug
  #
  # Display the current stack
  #
  class BacktraceCommand < Pry::ClassCommand
    include Helpers::Navigation

    match "backtrace"
    group "Byebug"

    description "Display the current stack."

    banner <<-BANNER
      Usage: backtrace

      Display the current stack.
    BANNER

    def process
      PryByebug.check_file_context(target)

      breakout_navigation :backtrace
    end
  end
end

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/pry-byebug-3.6.0/lib/pry-byebug/commands/backtrace.rb
pry-byebug-3.6.0 lib/pry-byebug/commands/backtrace.rb