Sha256: dc7f0486c97b7a7119edf5b9ec1147f229a18978b6c58ac457a7353613537de9

Contents?: true

Size: 520 Bytes

Versions: 28

Compression:

Stored size: 520 Bytes

Contents

module Rails
  module Rack
    class Debugger
      def initialize(app)
        @app = app

        require_library_or_gem 'ruby-debug'
        ::Debugger.start
        ::Debugger.settings[:autoeval] = 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'"
        exit
      end

      def call(env)
        @app.call(env)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 8 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.2 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.1.9 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.1.8 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.1.7 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.1.6 vendor/rails/railties/lib/rails/rack/debugger.rb
radiantcms-couchrest_model-0.1.5 vendor/rails/railties/lib/rails/rack/debugger.rb
radiant-0.8.2 vendor/rails/railties/lib/rails/rack/debugger.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/railties/lib/rails/rack/debugger.rb
ginst-2009.12.8 vendor/rails/railties/lib/rails/rack/debugger.rb
ginst-2009.11.24 vendor/rails/railties/lib/rails/rack/debugger.rb
ginst-2009.11.23 vendor/rails/railties/lib/rails/rack/debugger.rb
ginst-2.0.1 vendor/rails/railties/lib/rails/rack/debugger.rb
ginst-2.0.0 vendor/rails/railties/lib/rails/rack/debugger.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/railties/lib/rails/rack/debugger.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/railties/lib/rails/rack/debugger.rb
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/railties/lib/rails/rack/debugger.rb
gemstreamer-1.0.0 spec/assets/testapp/vendor/rails/railties/lib/rails/rack/debugger.rb