Live to Code

code to live

Remote Debugging with Pry and Pow

25 Oct 2012 | , , ,

I use Pow for running my Rack Apps on my dev machine and love it. However, recently I needed to use Pry to debug some weird behaviour I was seeing in my app. Luckily, there's a gem called pry-remote which makes it dead easy to use Pry with Pow.

  1. Add the gem to your Gemfile

    gem 'pry-remote', group: :development
  2. Install it

    $ bundle install
  3. Add a debug statement to your code


    (instead of binding.pry)

  4. Finally, connect to your remote debugging session

    $ pry-remote