Sha256: 871a4787cf124881af49089fe863f09e1463f2e327885ff8aa7f0734e1808789

Contents?: true

Size: 451 Bytes

Versions: 26

Compression:

Stored size: 451 Bytes

Contents

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=(v)
      Byebug.post_mortem = v
    end

    def value
      Byebug.post_mortem?
    end
  end
end

Version data entries

26 entries across 25 versions & 3 rubygems

Version Path
byebug-8.0.1 lib/byebug/settings/post_mortem.rb
byebug-8.0.0 lib/byebug/settings/post_mortem.rb
byebug-7.0.0 lib/byebug/settings/post_mortem.rb
byebug-6.0.2 lib/byebug/settings/post_mortem.rb
byebug-6.0.1 lib/byebug/settings/post_mortem.rb
byebug-6.0.0 lib/byebug/settings/post_mortem.rb