Updated README.rdoc again
[feedcatcher.git] / vendor / rails / railties / lib / rails / rack / debugger.rb
1 module Rails
2 module Rack
3 class Debugger
4 def initialize(app)
5 @app = app
6
7 require_library_or_gem 'ruby-debug'
8 ::Debugger.start
9 ::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings)
10 puts "=> Debugger enabled"
11 rescue Exception
12 puts "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"
13 exit
14 end
15
16 def call(env)
17 @app.call(env)
18 end
19 end
20 end
21 end