Module | Debugger |
In: |
lib/ruby-debug-base.rb
|
DEFAULT_START_SETTINGS | = | { :init => true, # Set $0 and save ARGV? :post_mortem => false | Default options to Debugger.start |
handler | [RW] | interface modules provide handler object |
last_exception | [RW] | |
reload_source_on_change | [RW] | if true, checks the modification time of source files and reloads if it was modified |
Activates the post-mortem mode. There are two ways of using it:
By calling Debugger.post_mortem method without a block, you install at_exit hook that intercepts any unhandled by your script exceptions and enables post-mortem mode.
If you know that a particular block of code raises an exception you can enable post-mortem mode by wrapping this block with Debugger.post_mortem, e.g.
def offender raise 'error' end Debugger.post_mortem do ... offender ... end