Sha256: 8236ba072eb374e300f7ec182d8419637bbb3f5f6e861465acc3a2cde1597026

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require "byebug/setting"
require "byebug/commands/list"

module Byebug
  #
  # Setting for automatically listing source code on every stop.
  #
  class AutolistSetting < Setting
    DEFAULT = 1

    def initialize
      ListCommand.always_run = DEFAULT
    end

    def banner
      "Invoke list command on every stop"
    end

    def value=(val)
      ListCommand.always_run = val ? 1 : 0
    end

    def value
      ListCommand.always_run == 1
    end
  end
end

Version data entries

12 entries across 12 versions & 7 rubygems

Version Path
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/byebug-10.0.2/lib/byebug/settings/autolist.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/byebug-10.0.2/lib/byebug/settings/autolist.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/byebug-10.0.2/lib/byebug/settings/autolist.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/byebug-11.0.1/lib/byebug/settings/autolist.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/byebug-11.0.1/lib/byebug/settings/autolist.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/byebug-11.0.1/lib/byebug/settings/autolist.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/byebug-11.0.1/lib/byebug/settings/autolist.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/byebug-10.0.2/lib/byebug/settings/autolist.rb
byebug-11.0.1 lib/byebug/settings/autolist.rb
byebug-11.0.0 lib/byebug/settings/autolist.rb
byebug-10.0.2 lib/byebug/settings/autolist.rb
byebug-10.0.1 lib/byebug/settings/autolist.rb