Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5424

Show
Ignore:
Timestamp:
11/03/06 18:20:53 (3 years ago)
Author:
htonl
Message:

Turns out call_stack slows down the entire app, so just warn that breakpoints
don't work with 1.8.5 for now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/breakpoint.rb

    r5408 r5424  
    1818require 'irb' 
    1919if RUBY_VERSION == '1.8.5' 
    20   begin 
    21     require 'rubygems' 
    22     require 'breakpoint185' 
    23   rescue LoadError       
    24     def Binding.of_caller(&block) 
    25       raise """Breakpoints do not work in Ruby 1.8.5 without call_stack. 
    26 gem install call_stack or see http://eigenclass.org/hiki.rb?call_stack""" 
    27     end 
     20  def Binding.of_caller(&block) 
     21    raise "Breakpoints are not currently working with Ruby 1.8.5" 
    2822  end 
    2923else