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=(v) ⇒ 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.
9 10 11 |
# File 'lib/byebug/settings/post_mortem.rb', line 9 def initialize Byebug.post_mortem = DEFAULT end |
Instance Method Details
#banner ⇒ Object
13 14 15 |
# File 'lib/byebug/settings/post_mortem.rb', line 13 def 'Enable/disable post-mortem mode' end |
#value ⇒ Object
21 22 23 |
# File 'lib/byebug/settings/post_mortem.rb', line 21 def value Byebug.post_mortem? end |
#value=(v) ⇒ Object
17 18 19 |
# File 'lib/byebug/settings/post_mortem.rb', line 17 def value=(v) Byebug.post_mortem = v end |