aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-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'"