Sha256: fcdcca62f93132cce44ff46ad6915c5e2f6d4b49af5ff831fac19dd63ca02852

Contents?: true

Size: 486 Bytes

Versions: 12

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

require "byebug/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

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/post_mortem.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/byebug-10.0.2/lib/byebug/settings/post_mortem.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/byebug-10.0.2/lib/byebug/settings/post_mortem.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/byebug-11.0.1/lib/byebug/settings/post_mortem.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/byebug-11.0.1/lib/byebug/settings/post_mortem.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/byebug-11.0.1/lib/byebug/settings/post_mortem.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/byebug-11.0.1/lib/byebug/settings/post_mortem.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/byebug-10.0.2/lib/byebug/settings/post_mortem.rb
byebug-11.0.1 lib/byebug/settings/post_mortem.rb
byebug-11.0.0 lib/byebug/settings/post_mortem.rb
byebug-10.0.2 lib/byebug/settings/post_mortem.rb
byebug-10.0.1 lib/byebug/settings/post_mortem.rb