Class: Byebug::PostMortemSetting
- 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
Instance Method Summary collapse
- #banner ⇒ Object
-
#initialize ⇒ PostMortemSetting
constructor
A new instance of PostMortemSetting.
- #value ⇒ Object
- #value=(val) ⇒ Object
Methods inherited from Setting
[], []=, #boolean?, find, #help, help_all, #integer?, settings, #to_s, #to_sym
Constructor Details
#initialize ⇒ PostMortemSetting
Returns a new instance of PostMortemSetting.
11 12 13 |
# File 'lib/byebug/settings/post_mortem.rb', line 11 def initialize Byebug.post_mortem = DEFAULT end |
Instance Method Details
#banner ⇒ Object
15 16 17 |
# File 'lib/byebug/settings/post_mortem.rb', line 15 def "Enable/disable post-mortem mode" end |
#value ⇒ Object
23 24 25 |
# File 'lib/byebug/settings/post_mortem.rb', line 23 def value Byebug.post_mortem? end |
#value=(val) ⇒ Object
19 20 21 |
# File 'lib/byebug/settings/post_mortem.rb', line 19 def value=(val) Byebug.post_mortem = val end |