require 'pry-rescue'
class PryRescue
  def initialize(app)
    @app = app
  end

  def call(env)
    Pry::rescue{ @app.call(env) }
  end
end

Add a Rack Middleware, thanks blaines
Add a Rack Middleware, thanks blaines

http://news.ycombinator.com/item?id=4439989
