Skip to content

Commit 6f80ea2

Browse files
author
Aditya Sanghi
committed
review changes for rails#5875
1 parent 0232543 commit 6f80ea2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

activesupport/lib/active_support/core_ext/kernel/debugger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Kernel
22
unless respond_to?(:debugger)
3-
# Starts a debugging session if debugger has been loaded (call rails server --debugger to do load it).
3+
# Starts a debugging session if +debugger+ gem has been loaded (call rails server --debugger to do load it).
44
def debugger
55
message = "\n***** Debugger requested, but was not available (ensure debugger is listed in Gemfile/installed as gem): Start server with --debugger to enable *****\n"
66
defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)

guides/code/getting_started/README.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Debugger support is available through the debugger command when you start your
8787
Mongrel or WEBrick server with --debugger. This means that you can break out of
8888
execution at any point in the code, investigate and change the model, and then,
8989
resume execution! You need to install debugger to run the server in debugging
90-
mode. With gems, use <tt>sudo gem install debugger</tt>. Example:
90+
mode. With gems, use <tt>gem install debugger</tt>. Example:
9191

9292
class WeblogController < ActionController::Base
9393
def index

guides/source/debugging_rails_applications.textile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,16 +202,16 @@ h4. Setup
202202
The debugger used by Rails, +debugger+, comes as a gem. To install it, just run:
203203

204204
<shell>
205-
$ sudo gem install debugger
205+
$ gem install debugger
206206
</shell>
207207

208-
TIP: If you are using Ruby 1.9, you can install a compatible version of +ruby-debug+ by running +sudo gem install debugger+
208+
TIP: If you are using Ruby 1.9, you can install a compatible version of +ruby-debug+ by running +gem install debugger+
209209

210210
In case you want to download a particular version or get the source code, refer to the "project's page on rubyforge":http://rubyforge.org/projects/ruby-debug/.
211211

212212
Rails has had built-in support for ruby-debug since Rails 2.0. Inside any Rails application you can invoke the debugger by calling the +debugger+ method.
213213

214-
ruby-debug19 has had a number of compatibility issues with ruby 1.9.3+ and as such the ball has been picked to maintain the ruby debugging gem in the newer "debugger" gem.
214+
+ruby-debug19+ gem has been replaced by the +debugger+ gem due to multiple issues on Ruby 1.9.3.
215215

216216
Here's an example:
217217

@@ -639,7 +639,7 @@ If a Ruby object does not go out of scope, the Ruby Garbage Collector won't swee
639639
To install it run:
640640

641641
<shell>
642-
$ sudo gem install bleak_house
642+
$ gem install bleak_house
643643
</shell>
644644

645645
Then setup your application for profiling. Then add the following at the bottom of config/environment.rb:

0 commit comments

Comments
 (0)