aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/breakpoint.rb
diff options
context:
space:
mode:
authorScott Barron <scott@elitists.net>2006-11-03 18:20:53 +0000
committerScott Barron <scott@elitists.net>2006-11-03 18:20:53 +0000
commitceb3859672ddba6257ffc59c2db4fd99d98ffc9b (patch)
tree1cf185a550bf5232025affefc4cd128f6a9e8358 /railties/lib/breakpoint.rb
parent7f6c5a56548233b8b02b09a1ac28d7b509bd26f7 (diff)
downloadrails-ceb3859672ddba6257ffc59c2db4fd99d98ffc9b.tar.gz
rails-ceb3859672ddba6257ffc59c2db4fd99d98ffc9b.tar.bz2
rails-ceb3859672ddba6257ffc59c2db4fd99d98ffc9b.zip
Turns out call_stack slows down the entire app, so just warn that breakpoints
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
Diffstat (limited to 'railties/lib/breakpoint.rb')
-rw-r--r--railties/lib/breakpoint.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/railties/lib/breakpoint.rb b/railties/lib/breakpoint.rb
index 7aa561e1a2..a4ed787b01 100644
--- a/railties/lib/breakpoint.rb
+++ b/railties/lib/breakpoint.rb
@@ -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'