Sha256: a51306b9fdbabb98c2478ef866cf9c203e8fa021099055fc49d4c748456c085c

Contents?: true

Size: 441 Bytes

Versions: 23

Compression:

Stored size: 441 Bytes

Contents

require 'byebug/setting'
require 'byebug/commands/pry'

module Byebug
  #
  # Setting for automatically invoking Pry on every stop.
  #
  class AutoprySetting < Setting
    DEFAULT = 0

    def initialize
      PryCommand.always_run = DEFAULT
    end

    def banner
      'Invoke Pry on every stop'
    end

    def value=(v)
      PryCommand.always_run = v ? 1 : 0
    end

    def value
      PryCommand.always_run == 1
    end
  end
end

Version data entries

23 entries across 22 versions & 3 rubygems

Version Path
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/byebug-9.1.0/lib/byebug/settings/autopry.rb
tdiary-5.0.6 vendor/bundle/gems/byebug-9.1.0/lib/byebug/settings/autopry.rb
byebug-9.1.0 lib/byebug/settings/autopry.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/byebug-9.0.6/lib/byebug/settings/autopry.rb
tdiary-5.0.5 vendor/bundle/gems/byebug-9.0.6/lib/byebug/settings/autopry.rb
tdiary-5.0.4 vendor/bundle/gems/byebug-9.0.6/lib/byebug/settings/autopry.rb
byebug-9.0.6 lib/byebug/settings/autopry.rb
byebug-9.0.5 lib/byebug/settings/autopry.rb
byebug-9.0.4 lib/byebug/settings/autopry.rb
byebug-9.0.3 lib/byebug/settings/autopry.rb
byebug-9.0.2 lib/byebug/settings/autopry.rb
byebug-9.0.1 lib/byebug/settings/autopry.rb
byebug-9.0.0 lib/byebug/settings/autopry.rb
byebug-8.2.5 lib/byebug/settings/autopry.rb
byebug-8.2.4 lib/byebug/settings/autopry.rb
byebug-8.2.3 lib/byebug/settings/autopry.rb
byebug-8.2.2 lib/byebug/settings/autopry.rb
byebug-8.2.1 lib/byebug/settings/autopry.rb
byebug-8.2.0 lib/byebug/settings/autopry.rb
byebug-8.1.0 lib/byebug/settings/autopry.rb