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.



9
10
11
# File 'lib/byebug/settings/post_mortem.rb', line 9

def initialize
  Byebug.post_mortem = DEFAULT
end

Instance Method Details



13
14
15
# File 'lib/byebug/settings/post_mortem.rb', line 13

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

#valueObject



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