class Rails::Rack::Debugger
def call(env)
def call(env) @app.call(env) end
def initialize(app)
def initialize(app) @app = app # clear ARGV so that rails server options aren't passed to IRB ARGV.clear require 'byebug' ::Byebug.start puts "=> Byebug enabled" rescue LoadError puts "You're missing the 'byebug' gem. Add it to your Gemfile, " \ "bundle it and try again." exit end