Class: Byebug::PostMortemSetting

Inherits:
Setting
  • Object
show all
Defined in:
lib/byebug/settings/post_mortem.rb

Overview

Setting to enable/disable post_mortem mode, i.e., a debugger prompt after program termination by unhandled exception.

Constant Summary

Constants inherited from Setting

Setting::DEFAULT

Instance Method Summary collapse

Methods inherited from Setting

[], []=, #boolean?, boolean?, exists?, find, #help, help, help_all, #integer?, integer?, load, settings, #to_s, #to_sym

Constructor Details

#initializePostMortemSetting

Returns a new instance of PostMortemSetting.



7
8
9
# File 'lib/byebug/settings/post_mortem.rb', line 7

def initialize
  Byebug.post_mortem = DEFAULT
end

Instance Method Details



11
12
13
# File 'lib/byebug/settings/post_mortem.rb', line 11

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

#valueObject



19
20
21
# File 'lib/byebug/settings/post_mortem.rb', line 19

def value
  Byebug.post_mortem?
end

#value=(v) ⇒ Object



15
16
17
# File 'lib/byebug/settings/post_mortem.rb', line 15

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