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