aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-29 01:35:33 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-29 01:35:33 +0000
commit1162c29e308eb064c305a06262b8a47e2e0f1b48 (patch)
treef00ef1c2557718a434ebde1fdef18af2d3e4c98b
parent70ac560e42644938392381ecd52efd7fb0260323 (diff)
downloadrails-1162c29e308eb064c305a06262b8a47e2e0f1b48.tar.gz
rails-1162c29e308eb064c305a06262b8a47e2e0f1b48.tar.bz2
rails-1162c29e308eb064c305a06262b8a47e2e0f1b48.zip
Start in irb mode if possible
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/lib/commands/servers/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/servers/base.rb b/railties/lib/commands/servers/base.rb
index ed32c3eea5..4e1dd4205d 100644
--- a/railties/lib/commands/servers/base.rb
+++ b/railties/lib/commands/servers/base.rb
@@ -22,7 +22,7 @@ def start_debugger
begin
require_library_or_gem 'ruby-debug'
Debugger.start
- # Debugger.settings[:autoirb] = true
+ Debugger.settings[:autoirb] = true if Debugger.respond_to?(:settings)
puts "=> Debugger enabled"
rescue Exception
puts "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"