Module Debugger
In: lib/ruby-debug-base.rb

Methods

Classes and Modules

Class Debugger::Context

Constants

DEFAULT_START_SETTINGS = { :init => true, # Set $0 and save ARGV? :post_mortem => false   Default options to Debugger.start

Attributes

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

Public Class methods

Interrupts the current thread

Interrupts the last debugged thread

Activates the post-mortem mode. There are two ways of using it:

Global post-mortem mode

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.

Local 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

[Validate]