Sha256: 0061130458506578cbe1d36384685f08936077c4d0e3ed6bcaf3e3ff7f54cdce

Contents?: true

Size: 491 Bytes

Versions: 6770

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require_relative "../setting"

module Byebug
  #
  # Setting to enable/disable post_mortem mode, i.e., a debugger prompt after
  # program termination by unhandled exception.
  #
  class PostMortemSetting < Setting
    def initialize
      Byebug.post_mortem = DEFAULT
    end

    def banner
      "Enable/disable post-mortem mode"
    end

    def value=(val)
      Byebug.post_mortem = val
    end

    def value
      Byebug.post_mortem?
    end
  end
end

Version data entries

6,770 entries across 6,767 versions & 30 rubygems

Version Path
cybrid_api_organization_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_bank_ruby-0.123.142 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.142 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_organization_ruby-0.123.142 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_bank_ruby-0.123.140 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.140 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_organization_ruby-0.123.140 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_bank_ruby-0.123.139 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.139 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_organization_ruby-0.123.139 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_organization_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_bank_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_organization_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_bank_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_bank_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_id_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb
cybrid_api_organization_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb