Permalink
Browse files

Start in irb mode if possible

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 70ac560 commit 1162c29e308eb064c305a06262b8a47e2e0f1b48 @dhh dhh committed Apr 29, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/servers/base.rb
View
2 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'"

0 comments on commit 1162c29

Please sign in to comment.