Sha256: abf02e9cec080ef2122a99c37484e0bb44063d066a4654ba178fce82fc93e043

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

require 'pry-byebug/helpers/navigation'
require 'pry-byebug/helpers/breakpoints'

module PryByebug
  #
  # Continue program execution until the next breakpoint
  #
  class ContinueCommand < Pry::ClassCommand
    include Helpers::Navigation
    include Helpers::Breakpoints

    match 'continue'
    group 'Byebug'
    description 'Continue program execution and end the Pry session.'

    banner <<-BANNER
      Usage: continue [LINE]

      Continue program execution until the next breakpoint, or the program
      ends. Optionally continue to the specified line number.

      Examples:
        continue   #=> Continue until the next breakpoint.
        continue 4 #=> Continue to line number 4.
    BANNER

    def process
      PryByebug.check_file_context(target)

      breakpoints.add_file(current_file, args.first.to_i) if args.first

      breakout_navigation :continue
    end
  end
end

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/pry-byebug-3.2.0/lib/pry-byebug/commands/continue.rb
pry-byebug-3.2.0 lib/pry-byebug/commands/continue.rb