Class: Module

### Home Classes Methods

### In Files

- lib/ruby-debug-base.rb

### Parent

Object

### Methods

- #debug_method
- #post_mortem_method

### Class/Module Index

Quicksearch

- Debugger
- Debugger::AddBreakpoint
- Debugger::Breakpoint
- Debugger::Context
- Debugger::ContinueCommand
- Debugger::DeleteBreakpointCommand
- Debugger::FinishCommand
- Debugger::HelpCommand
- Debugger::IRBCommand
- Debugger::InfoCommand
- Debugger::JumpCommand
- Debugger::KillCommand
- Debugger::ListCommand
- Debugger::LocalInterface
- Debugger::LocalInterface::Debugger
- Debugger::MethodCommand
- Debugger::MethodSigCommand
- Debugger::NextCommand
- Debugger::ParseFunctions
- Debugger::Processor
- Debugger::QuitCommand
- Debugger::ReloadCommand
- Debugger::SetCommand
- Debugger::ShowCommand
- Debugger::SkipCommand
- Debugger::SourceCommand
- Debugger::StepCommand
- Debugger::VarClassVarCommand
- Debugger::VarInheritCommand
- Debugger::VarLocalCommand
- Debugger::WhereCommand
- Printers
- Printers::Base
- Printers::Base::MissedArgument
- Printers::Base::MissedPath
- Printers::Plain
- Mocha
- Mocha::Call
- Mocha::Expectation
- Mocha::Mock
- MiniTest
- MiniTest::Assertions
- MiniTest::Expectations
- TestDsl
- TestDsl::ClassMethods
- TestDsl::Shared
- Kernel
- Module
- PrinterHelpers
- TestInterface

No matching classes.

# Module

### Public Instance Methods

debug_method(meth) click to toggle source

Wraps the `meth` method with Debugger.start {...} block.

    # File lib/ruby-debug-base.rb, line 274
    def debug_method(meth)
      old_meth = "__debugee_#{meth}"
      old_meth = "#{$1}_set" if old_meth =~ /^(.+)=$/
      alias_method old_meth.to_sym, meth
      class_eval     def #{meth}(*args, &block)      Debugger.start do        debugger 2        #{old_meth}(*args, &block)      end    end
    end

post_mortem_method(meth) click to toggle source

Wraps the `meth` method with Debugger.post_mortem {...} block.

    # File lib/ruby-debug-base.rb, line 291
    def post_mortem_method(meth)
      old_meth = "__postmortem_#{meth}"
      old_meth = "#{$1}_set" if old_meth =~ /^(.+)=$/
      alias_method old_meth.to_sym, meth
      class_eval     def #{meth}(*args, &block)      Debugger.start do |dbg|        dbg.post_mortem do          #{old_meth}(*args, &block)        end      end    end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.