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?, find, #help, help_all, #integer?, settings, #to_s, #to_sym

Constructor Details

#initializePostMortemSetting

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



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

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

#valueObject



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