Search code examples
rubyruby-on-rails-2

Does pry work on Rails 2?


I'm looking for a good solution to debug my application(written on Rails 2) and I found pry very helpful. How can I use it in a Rails 2 app, tried and it doesn't seem to be working? Is there an alternative?


Solution

  • script/console --irb=pry
    

    see: https://github.com/pry/pry/wiki/Setting-up-Rails-or-Heroku-to-use-Pry