class method
self.new
Ruby on Rails 4.0.13
Since v2.3.18 Last seen in v4.2.9Signature
self.new(app)
No documentation comment.
Parameters
-
appreq
Source
# File railties/lib/rails/rack/debugger.rb, line 4
def initialize(app)
@app = app
ARGV.clear # clear ARGV so that rails server options aren't passed to IRB
require 'debugger'
::Debugger.start
::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings)
puts "=> Debugger enabled"
rescue LoadError
puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
exit
end
Defined in railties/lib/rails/rack/debugger.rb line 4
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Rack::Debugger