Skip to content

Instantly share code, notes, and snippets.

@costa
Last active August 29, 2015 14:02
Show Gist options
  • Save costa/bf49749829003a9f4332 to your computer and use it in GitHub Desktop.
Save costa/bf49749829003a9f4332 to your computer and use it in GitHub Desktop.
put this in your rails project's config/environments/development.rb (or your platform's equivalent); see http://mines.mouldwarp.com/2014/06/pow-and-byebug-staying-in-web-app-dev.html
if ENV['RUBY_DEBUG_PORT'] # NOTE no RUBY_DEBUG_PORT in the environment means no remote debugging, okay?
Byebug.start_server 'localhost', ENV['RUBY_DEBUG_PORT'].to_i
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment