Skip to content

Commit

Permalink
Turns out call_stack slows down the entire app, so just warn that bre…
Browse files Browse the repository at this point in the history
…akpoints

don't work with 1.8.5 for now.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
Scott Barron committed Nov 3, 2006
1 parent 7f6c5a5 commit ceb3859
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions railties/lib/breakpoint.rb
Expand Up @@ -17,14 +17,8 @@

require 'irb'
if RUBY_VERSION == '1.8.5'
begin
require 'rubygems'
require 'breakpoint185'
rescue LoadError
def Binding.of_caller(&block)
raise """Breakpoints do not work in Ruby 1.8.5 without call_stack.
gem install call_stack or see http://eigenclass.org/hiki.rb?call_stack"""
end
def Binding.of_caller(&block)
raise "Breakpoints are not currently working with Ruby 1.8.5"
end
else
require 'binding_of_caller'
Expand Down

0 comments on commit ceb3859

Please sign in to comment.