diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-02 16:17:05 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-02 16:17:05 -0500 |
commit | 02512914ae547eb664a78c0f6084b121d5283a61 (patch) | |
tree | c89a5b53750bd8094ad2f0b0e5d0e929b872d844 | |
parent | cae25199008bc26d215e7af5558cfcdfdc6ec264 (diff) | |
download | rails-02512914ae547eb664a78c0f6084b121d5283a61.tar.gz rails-02512914ae547eb664a78c0f6084b121d5283a61.tar.bz2 rails-02512914ae547eb664a78c0f6084b121d5283a61.zip |
You need the ruby-debug available in your Gemfile for debugger to work
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/debugger.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/debugger.rb b/activesupport/lib/active_support/core_ext/kernel/debugger.rb index 22fcc1910b..692340c7c7 100644 --- a/activesupport/lib/active_support/core_ext/kernel/debugger.rb +++ b/activesupport/lib/active_support/core_ext/kernel/debugger.rb @@ -2,7 +2,7 @@ module Kernel unless respond_to?(:debugger) # Starts a debugging session if ruby-debug has been loaded (call rails server --debugger to do load it). def debugger - message = "\n***** Debugger requested, but was not available: Start server with --debugger to enable *****\n" + message = "\n***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****\n" defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message) end end diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index f751c4519d..0b922a89c0 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -23,6 +23,9 @@ gem '<%= gem_for_database %>'<% if require_for_database %>, :require => '<%= req # Deploy with Capistrano # gem 'capistrano' +# To use debugger +# gem 'ruby-debug' + # Bundle the extra gems: # gem 'bj' # gem 'nokogiri', '1.4.1' |