How do I connect to a remote debugging instance of Byebug (for use with Pow, etc)?
I had to piece together information from several different sources to accomplish the above, so I thought I'd include a consolidated guide here for convenience:
Here are the steps:
In config/environments/development.rb, add:
require 'byebug'
#set in your .powconfig
if ENV['RUBY_DEBUG_PORT']
Byebug.start_server 'localhost', ENV['RUBY_DEBUG_PORT'].to_i
else
Byebug.start_server 'localhost'
end
Restart Pow and visit yourapp.dev
Run the following:
[bundle exec] byebug -R localhost:
You should see a successful connection to the remote instance.